X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=time.php;h=d01744bf0b32c6bad0f7240eda746cd7513a6199;hb=e96a91f4cdd1bd25ffab2afdc7d90102b30a37ba;hp=aeeedd25c2b959741e34455bf813ffa61669bd7d;hpb=b401022733a9645ed701522585b2d57db936f5cc;p=timetracker.git diff --git a/time.php b/time.php index aeeedd25..d01744bf 100644 --- a/time.php +++ b/time.php @@ -42,7 +42,7 @@ import('DateAndTime'); // } // Access check. -if (!ttAccessAllowed('data_entry')) { +if (!ttAccessAllowed('track_own_time')) { header('Location: access_denied.php'); exit(); } @@ -187,7 +187,7 @@ if (MODE_PROJECTS_AND_TASKS == $user->tracking_mode) { if ((TYPE_START_FINISH == $user->record_type) || (TYPE_ALL == $user->record_type)) { $form->addInput(array('type'=>'text','name'=>'start','value'=>$cl_start,'onchange'=>"formDisable('start');")); $form->addInput(array('type'=>'text','name'=>'finish','value'=>$cl_finish,'onchange'=>"formDisable('finish');")); - if ($user->punch_mode && !in_array('override_punch_mode', $user->rights)) { + if ($user->punch_mode && !$user->can('override_punch_mode')) { // Make the start and finish fields read-only. $form->getElement('start')->setEnabled(false); $form->getElement('finish')->setEnabled(false);