X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=time_edit.php;h=3f2035c98aea4d3d1aa6053d2dc778446a7cc3c7;hb=ae00c14ac2999773e17a761542932cb95420430a;hp=6071997147ed27e5660537da4d8f9343122c1ed6;hpb=3c857ca72d35f70449f20f1156ab35db92f84828;p=timetracker.git diff --git a/time_edit.php b/time_edit.php index 60719971..3f2035c9 100644 --- a/time_edit.php +++ b/time_edit.php @@ -35,7 +35,7 @@ import('ttTimeHelper'); import('DateAndTime'); // Access check. -if (!ttAccessCheck(right_data_entry)) { +if (!ttAccessAllowed('track_own_time')) { header('Location: access_denied.php'); exit(); } @@ -178,7 +178,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->canManageTeam() && defined('READONLY_START_FINISH') && isTrue(READONLY_START_FINISH)) { + if ($user->punch_mode && !in_array('override_punch_mode', $user->rights)) { // Make the start and finish fields read-only. $form->getElement('start')->setEnabled(false); $form->getElement('finish')->setEnabled(false);