projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor header to use user rights. (#57)
[timetracker.git]
/
mobile
/
client_add.php
diff --git
a/mobile/client_add.php
b/mobile/client_add.php
index
134819b
..
fc57853
100644
(file)
--- a/
mobile/client_add.php
+++ b/
mobile/client_add.php
@@
-31,11
+31,15
@@
import('form.Form');
import('ttClientHelper');
import('ttTeamHelper');
import('ttClientHelper');
import('ttTeamHelper');
-// Access check.
-if (!ttAccessAllowed('manage_clients')
|| !$user->isPluginEnabled('cl')
) {
+// Access check
s
.
+if (!ttAccessAllowed('manage_clients')) {
header('Location: access_denied.php');
exit();
}
header('Location: access_denied.php');
exit();
}
+if (!$user->isPluginEnabled('cl')) {
+ header('Location: feature_disabled.php');
+ exit();
+}
$projects = ttTeamHelper::getActiveProjects($user->team_id);
$projects = ttTeamHelper::getActiveProjects($user->team_id);