X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/76dd7930c2ef4f6de65bd98acfd3d0ef25979c18..6b1d36d49ecb821678978322df9754ce23bb0359:/notification_edit.php diff --git a/notification_edit.php b/notification_edit.php index 8e03b563..ec26f610 100644 --- a/notification_edit.php +++ b/notification_edit.php @@ -34,7 +34,7 @@ import('ttFavReportHelper'); import('ttNotificationHelper'); // Access check. -if (!ttAccessCheck(right_manage_team) || !$user->isPluginEnabled('no')) { +if (!ttAccessAllowed('manage_advanced_settings') || !$user->isPluginEnabled('no')) { header('Location: access_denied.php'); exit(); } @@ -78,7 +78,7 @@ $form->addInput(array('type'=>'submit','name'=>'btn_submit','value'=>$i18n->getK if ($request->isPost()) { // Validate user input. if (!$cl_fav_report) $err->add($i18n->getKey('error.report')); - if (!ttValidCronSpec($cl_cron_spec)) $err->add($i18n->getKey('error.field'), $i18n->getKey('label.cron_schedule')); + if (!ttValidCronSpec($cl_cron_spec)) $err->add($i18n->getKey('error.field'), $i18n->getKey('label.schedule')); if (!ttValidEmail($cl_email)) $err->add($i18n->getKey('error.field'), $i18n->getKey('label.email')); if (!ttValidEmail($cl_cc, true)) $err->add($i18n->getKey('error.field'), $i18n->getKey('label.cc')); if (!ttValidString($cl_subject, true)) $err->add($i18n->getKey('error.field'), $i18n->getKey('label.subject'));