X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=tasks.php;h=3ea2faaa0fb6dec831e03a7af2bd32f9aa013801;hb=e84f77ca5b0a5470425cac47aa90563508793699;hp=6258831c85e39ab6f4c35e4632e01ef9938fbc8c;hpb=098a79f0819ebb89b7d48df4a6b154af4560f68e;p=timetracker.git diff --git a/tasks.php b/tasks.php index 6258831c..3ea2faaa 100644 --- a/tasks.php +++ b/tasks.php @@ -31,7 +31,7 @@ import('form.Form'); import('ttTeamHelper'); // Access check. -if (!ttAccessCheck(right_manage_team)) { +if (!ttAccessCheck(right_manage_team) || MODE_PROJECTS_AND_TASKS != $user->tracking_mode) { header('Location: access_denied.php'); exit(); } @@ -41,4 +41,3 @@ $smarty->assign('inactive_tasks', ttTeamHelper::getInactiveTasks($user->team_id) $smarty->assign('title', $i18n->getKey('title.tasks')); $smarty->assign('content_page_name', 'tasks.tpl'); $smarty->display('index.tpl'); -?> \ No newline at end of file