X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/fa05834dbdd4f642cac9c83773cd755ab5791e25..f20ec5fb1e42bf4a273cb2d3a99d3d7b33c2ff48:/quotas.php diff --git a/quotas.php b/quotas.php index 68b8a619..2e64e425 100644 --- a/quotas.php +++ b/quotas.php @@ -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 for the entire year. $monthsData = $quota->get($selectedYear); $form = new Form('monthlyQuotasForm');