]> wagnertech.de Git - timetracker.git/blobdiff - tasks.php
Added some protection from bot registrations.
[timetracker.git] / tasks.php
index 3ea2faaa0fb6dec831e03a7af2bd32f9aa013801..5bc3fd45995136abce6d8e4d34aa39db6dd01f7b 100644 (file)
--- a/tasks.php
+++ b/tasks.php
@@ -31,13 +31,13 @@ import('form.Form');
 import('ttTeamHelper');
 
 // Access check.
-if (!ttAccessCheck(right_manage_team) || MODE_PROJECTS_AND_TASKS != $user->tracking_mode) {
+if (!ttAccessAllowed('manage_tasks') || MODE_PROJECTS_AND_TASKS != $user->tracking_mode) {
   header('Location: access_denied.php');
   exit();
 }
 
 $smarty->assign('active_tasks', ttTeamHelper::getActiveTasks($user->team_id));
 $smarty->assign('inactive_tasks', ttTeamHelper::getInactiveTasks($user->team_id));
-$smarty->assign('title', $i18n->getKey('title.tasks'));
+$smarty->assign('title', $i18n->get('title.tasks'));
 $smarty->assign('content_page_name', 'tasks.tpl');
 $smarty->display('index.tpl');