X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=notification_add.php;h=3cac65217adb0e9d57a9855db765edb7cec3e471;hb=ecf7d911c95935f8cfb2403f645cd12f93d8c3f5;hp=3fa4073a810c68288ffdea7cb01b31a8ac8a2de3;hpb=76dd7930c2ef4f6de65bd98acfd3d0ef25979c18;p=timetracker.git 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'));