]> wagnertech.de Git - timetracker.git/blobdiff - tasks.php
Access checks re-done using role rights.
[timetracker.git] / tasks.php
index 3ea2faaa0fb6dec831e03a7af2bd32f9aa013801..a1033a5c09142fcc8287a8bbe9ee77b89142c478 100644 (file)
--- a/tasks.php
+++ b/tasks.php
@@ -31,7 +31,7 @@ import('form.Form');
 import('ttTeamHelper');
 
 // Access check.
-if (!ttAccessCheck(right_manage_team) || MODE_PROJECTS_AND_TASKS != $user->tracking_mode) {
+if (!ttAccessAllowed('manage_tasks') || MODE_PROJECTS_AND_TASKS != $user->tracking_mode) {
   header('Location: access_denied.php');
   exit();
 }