projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed the charts tab to work better for lower roles only.
[timetracker.git]
/
locking.php
diff --git
a/locking.php
b/locking.php
index
8a6f430
..
2b49b83
100644
(file)
--- a/
locking.php
+++ b/
locking.php
@@
-30,11
+30,15
@@
require_once('initialize.php');
import('form.Form');
import('ttTeamHelper');
import('form.Form');
import('ttTeamHelper');
-// Access check.
-if (!ttAccessAllowed('manage_advanced_settings')
|| !$user->isPluginEnabled('lk')
) {
+// Access check
s
.
+if (!ttAccessAllowed('manage_advanced_settings')) {
header('Location: access_denied.php');
exit();
}
header('Location: access_denied.php');
exit();
}
+if (!$user->isPluginEnabled('lk')) {
+ header('Location: feature_disabled.php');
+ exit();
+}
$cl_lock_spec = $request->isPost() ? $request->getParameter('lock_spec') : $user->lock_spec;
$cl_lock_spec = $request->isPost() ? $request->getParameter('lock_spec') : $user->lock_spec;