projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some refactoring.
[timetracker.git]
/
mobile
/
task_add.php
diff --git
a/mobile/task_add.php
b/mobile/task_add.php
index
9319e2a
..
b413002
100644
(file)
--- a/
mobile/task_add.php
+++ b/
mobile/task_add.php
@@
-33,7
+33,7
@@
import('ttTeamHelper');
import('ttTaskHelper');
// Access check.
import('ttTaskHelper');
// Access check.
-if (!ttAccess
Check(right_manage_team)
) {
+if (!ttAccess
Allowed('manage_tasks') || MODE_PROJECTS_AND_TASKS != $user->tracking_mode
) {
header('Location: access_denied.php');
exit();
}
header('Location: access_denied.php');
exit();
}