X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=quotas.php;h=2e64e425d7f078bf6a8359c29ca909613d212dc3;hb=232a12a5e68da662e86d3141ac98a1b12d820964;hp=68b8a6198756deca8cb61f369d6b593f2b33da06;hpb=fa05834dbdd4f642cac9c83773cd755ab5791e25;p=timetracker.git 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');