]> wagnertech.de Git - timetracker.git/blobdiff - quotas.php
A bit more progress on refactoring access checks.
[timetracker.git] / quotas.php
index 19e70e50529fb67a48673a3de3e666aa5081ddda..c921fba4ccad3748af38bd12298b488e6c3d9160 100644 (file)
@@ -32,11 +32,15 @@ import('form.Form');
 import('ttTeamHelper');
 import('ttTimeHelper');
 
-// Access check.
-if (!ttAccessAllowed('manage_advanced_settings') || !$user->isPluginEnabled('mq')) {
+// Access checks.
+if (!ttAccessAllowed('manage_advanced_settings')) {
   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;