Improved a comment.
[timetracker.git] / quotas.php
index 68b8a61..ac0998c 100644 (file)
@@ -32,7 +32,7 @@ import('form.Form');
 import('ttTeamHelper');
 
 // Access check.
-if (!ttAccessCheck(right_manage_team)) {
+if (!ttAccessCheck(right_manage_team) || !$user->isPluginEnabled('mq')) {
   header('Location: access_denied.php');
   exit();
 }
@@ -93,7 +93,7 @@ if ($request->isPost()){
   }
 }
 
-// Returns monthly quotas where January is month 1, not 0.
+// Get monthly quotas where for the entire year.
 $monthsData = $quota->get($selectedYear);
 
 $form = new Form('monthlyQuotasForm');