X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=projects.php;h=ce7bb9a1a4e0717a1aed84d9318e55da42363114;hb=7916f561fed6b50348f144fc411ca82ee9bd5ebb;hp=8f1ce5c67b9247619cf2b436eed440bbfddacf80;hpb=098a79f0819ebb89b7d48df4a6b154af4560f68e;p=timetracker.git diff --git a/projects.php b/projects.php index 8f1ce5c6..ce7bb9a1 100644 --- a/projects.php +++ b/projects.php @@ -31,7 +31,7 @@ import('form.Form'); import('ttTeamHelper'); // Access check. -if (!ttAccessCheck(right_data_entry)) { +if (!ttAccessAllowed('track_own_time') || (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