X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=project_add.php;h=99f8c6d5feecff85f606bc75457adc1aa3504ad6;hb=8d79e78a49803d07856cd68ab733157dfed6f793;hp=1c825d9fb1ab619c0a0c82fbcc8aac89edf994bb;hpb=eb55e2f8ca3859482a389795e03b45283e14ef36;p=timetracker.git diff --git a/project_add.php b/project_add.php index 1c825d9f..99f8c6d5 100644 --- a/project_add.php +++ b/project_add.php @@ -32,7 +32,7 @@ import('ttProjectHelper'); import('ttTeamHelper'); // Access check. -if (!ttAccessCheck(right_manage_team)) { +if (!ttAccessAllowed('manage_projects') || (MODE_PROJECTS != $user->tracking_mode && MODE_PROJECTS_AND_TASKS != $user->tracking_mode)) { header('Location: access_denied.php'); exit(); }