X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=time.php;h=62d6bced28aa900e2eda64463450191046fb3302;hb=c138ab042a599beb780895e5a5f54a1b287d67ae;hp=f7bd3d3dd61c9639788873066a45138f2f7fe032;hpb=1525dcb2eb2094c83ac9762675d957c285762434;p=timetracker.git diff --git a/time.php b/time.php index f7bd3d3d..62d6bced 100644 --- a/time.php +++ b/time.php @@ -42,7 +42,7 @@ import('DateAndTime'); // } // Access check. -if (!ttAccessCheck(right_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) { + 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);