X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=quotas.php;h=d846ae25d79196f4c5449bb33941caea26486738;hb=e1703495130c8ed88fe210f50a2a6b453b3c566b;hp=1dfa06fa207f4138ce319aee8edc78890e218512;hpb=f74704271ae5d37aee3fdf941f3462c8b92ad0fd;p=timetracker.git diff --git a/quotas.php b/quotas.php index 1dfa06fa..d846ae25 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(); } @@ -97,7 +97,7 @@ if ($request->isPost()){ $monthsData = $quota->get($selectedYear); $form = new Form('monthlyQuotasForm'); -$form->addInput(array('type'=>'text', 'name'=>'workdayHours', 'value'=>$quota->getWorkdayHours(), 'style'=>'width:50px')); +$form->addInput(array('type'=>'text', 'name'=>'workdayHours', 'value'=>$user->workday_hours, 'style'=>'width:50px')); $form->addInput(array('type'=>'combobox','name'=>'year','data'=>$years,'datakeys'=>array('id','name'),'value'=>$selectedYear,'onchange'=>'yearChange(this.value);')); for ($i=0; $i < count($months); $i++) { $value = "";