X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=projects.php;h=d9f3685124104338c4c3d0aa2ebf009caaa5e2d3;hb=cd5e077ecb497431decde4835138b877d63b261c;hp=8f1ce5c67b9247619cf2b436eed440bbfddacf80;hpb=098a79f0819ebb89b7d48df4a6b154af4560f68e;p=timetracker.git diff --git a/projects.php b/projects.php index 8f1ce5c6..d9f36851 100644 --- a/projects.php +++ b/projects.php @@ -31,7 +31,7 @@ import('form.Form'); import('ttTeamHelper'); // Access check. -if (!ttAccessCheck(right_data_entry)) { +if (!ttAccessCheck(right_data_entry) || (MODE_PROJECTS != $user->tracking_mode && MODE_PROJECTS_AND_TASKS != $user->tracking_mode)) { header('Location: access_denied.php'); exit(); } @@ -47,4 +47,3 @@ $smarty->assign('inactive_projects', $inactive_projects); $smarty->assign('title', $i18n->getKey('title.projects')); $smarty->assign('content_page_name', 'projects.tpl'); $smarty->display('index.tpl'); -?> \ No newline at end of file