]> wagnertech.de Git - timetracker.git/blobdiff - projects.php
Access checks re-done using role rights.
[timetracker.git] / projects.php
index d9f3685124104338c4c3d0aa2ebf009caaa5e2d3..d5f3bc12e9aaf85551d683b101d3e87db095d4fc 100644 (file)
@@ -31,7 +31,7 @@ import('form.Form');
 import('ttTeamHelper');
 
 // Access check.
-if (!ttAccessCheck(right_data_entry) || (MODE_PROJECTS != $user->tracking_mode && MODE_PROJECTS_AND_TASKS != $user->tracking_mode)) {
+if (!ttAccessAllowed('data_entry') || (MODE_PROJECTS != $user->tracking_mode && MODE_PROJECTS_AND_TASKS != $user->tracking_mode)) {
   header('Location: access_denied.php');
   exit();
 }