]> wagnertech.de Git - timetracker.git/blobdiff - task_add.php
Refactoring. Renamed tt_teams table to tt_groups.
[timetracker.git] / task_add.php
index 12c54464da96157fd699d7a5a9091492ee967f32..eaaba5e8d27d2c22633bdb539a5c9d45a883e5a0 100644 (file)
@@ -32,11 +32,16 @@ import('form.ActionForm');
 import('ttTeamHelper');
 import('ttTaskHelper');
 
-// Access check.
-if (!ttAccessAllowed('manage_tasks') || MODE_PROJECTS_AND_TASKS != $user->tracking_mode) {
+// Access checks.
+if (!ttAccessAllowed('manage_tasks')) {
   header('Location: access_denied.php');
   exit();
 }
+if (MODE_PROJECTS_AND_TASKS != $user->tracking_mode) {
+  header('Location: feature_disabled.php');
+  exit();
+}
+// End of access checks.
 
 $projects = ttTeamHelper::getActiveProjects($user->team_id);