X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/76dd7930c2ef4f6de65bd98acfd3d0ef25979c18..813f43a9406fb5adfb8c6e89cd97b06a11da58c9:/notification_add.php diff --git a/notification_add.php b/notification_add.php index 3fa4073a..3cac6521 100644 --- a/notification_add.php +++ b/notification_add.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(); } @@ -71,7 +71,7 @@ $form->addInput(array('type'=>'submit','name'=>'btn_add','value'=>$i18n->getKey( 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'));