X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=locking.php;h=1f9530c97a753de6cda024bd6717b4c65c60f376;hb=f81ad45ed1f9178834ff56f4a3a2ee0839a43dd9;hp=dfdc2f2fcc0c7cd9498fd5e651f0836de1bcfe02;hpb=270e151b8e401b815c6920a2d56e67db9e8b8e98;p=timetracker.git diff --git a/locking.php b/locking.php index dfdc2f2f..1f9530c9 100644 --- a/locking.php +++ b/locking.php @@ -31,7 +31,7 @@ import('form.Form'); import('ttTeamHelper'); // Access check. -if (!ttAccessCheck(right_manage_team)) { +if (!ttAccessAllowed('manage_advanced_settings') || !$user->isPluginEnabled('lk')) { header('Location: access_denied.php'); exit(); } @@ -44,7 +44,7 @@ $form->addInput(array('type'=>'submit','name'=>'btn_save','value'=>$i18n->getKey if ($request->isPost()) { // Validate user input. - if (!ttValidCronSpec($cl_lock_spec)) $err->add($i18n->getKey('error.field'), $i18n->getKey('label.cron_schedule')); + if (!ttValidCronSpec($cl_lock_spec)) $err->add($i18n->getKey('error.field'), $i18n->getKey('label.schedule')); if ($err->no()) { if (ttTeamHelper::update($user->team_id, array(