]> wagnertech.de Git - timetracker.git/blobdiff - time_edit.php
Fixed export and import. Now teams should be imported with roles.
[timetracker.git] / time_edit.php
index 3f2035c98aea4d3d1aa6053d2dc778446a7cc3c7..59ae7531bdd3bab0ee8b6b35f5a9fd3e64eaa777 100644 (file)
@@ -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->punch_mode && !in_array('override_punch_mode', $user->rights)) {
+  if ($user->punch_mode && !$user->canOverridePunchMode()) {
     // Make the start and finish fields read-only.
     $form->getElement('start')->setEnabled(false);
     $form->getElement('finish')->setEnabled(false);