projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed typos.
[timetracker.git]
/
task_add.php
diff --git
a/task_add.php
b/task_add.php
index
12c5446
..
a5149e8
100644
(file)
--- a/
task_add.php
+++ b/
task_add.php
@@
-32,11
+32,15
@@
import('form.ActionForm');
import('ttTeamHelper');
import('ttTaskHelper');
import('ttTeamHelper');
import('ttTaskHelper');
-// Access check.
-if (!ttAccessAllowed('manage_tasks')
|| MODE_PROJECTS_AND_TASKS != $user->tracking_mode
) {
+// Access check
s
.
+if (!ttAccessAllowed('manage_tasks')) {
header('Location: access_denied.php');
exit();
}
header('Location: access_denied.php');
exit();
}
+if (MODE_PROJECTS_AND_TASKS != $user->tracking_mode) {
+ header('Location: feature_disabled.php');
+ exit();
+}
$projects = ttTeamHelper::getActiveProjects($user->team_id);
$projects = ttTeamHelper::getActiveProjects($user->team_id);