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
/
project_delete.php
diff --git
a/mobile/project_delete.php
b/mobile/project_delete.php
index
79ed438
..
6e57f4d
100644
(file)
--- a/
mobile/project_delete.php
+++ b/
mobile/project_delete.php
@@
-31,7
+31,7
@@
import('form.Form');
import('ttProjectHelper');
// Access check.
import('ttProjectHelper');
// Access check.
-if (!ttAccess
Check(right_manage_team
)) {
+if (!ttAccess
Allowed('manage_projects') || (MODE_PROJECTS != $user->tracking_mode && MODE_PROJECTS_AND_TASKS != $user->tracking_mode
)) {
header('Location: access_denied.php');
exit();
}
header('Location: access_denied.php');
exit();
}