projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Access check improvements for time and expense edits and deletes.
[timetracker.git]
/
quotas.php
diff --git
a/quotas.php
b/quotas.php
index
19e70e5
..
c921fba
100644
(file)
--- a/
quotas.php
+++ b/
quotas.php
@@
-32,11
+32,15
@@
import('form.Form');
import('ttTeamHelper');
import('ttTimeHelper');
import('ttTeamHelper');
import('ttTimeHelper');
-// Access check.
-if (!ttAccessAllowed('manage_advanced_settings')
|| !$user->isPluginEnabled('mq')
) {
+// Access check
s
.
+if (!ttAccessAllowed('manage_advanced_settings')) {
header('Location: access_denied.php');
exit();
}
header('Location: access_denied.php');
exit();
}
+if (!$user->isPluginEnabled('mq')) {
+ header('Location: feature_disabled.php');
+ exit();
+}
// Start and end fallback values for the Year dropdown.
$yearStart = 2015;
// Start and end fallback values for the Year dropdown.
$yearStart = 2015;