X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=notification_delete.php;h=0b6cf5ccc4862efa63235ad70875bad3849f31e3;hb=2ccee198591bc2ad5d80b5e1076246449d9232c1;hp=cd0d748e01557cfdfca480bfbcd4940fad227fc8;hpb=9e82b53fc5d8cb1e54b5fde774fa68a916f28b4c;p=timetracker.git diff --git a/notification_delete.php b/notification_delete.php index cd0d748e..0b6cf5cc 100644 --- a/notification_delete.php +++ b/notification_delete.php @@ -31,7 +31,7 @@ import('form.Form'); import('ttNotificationHelper'); // Access check. -if (!ttAccessCheck(right_manage_team)) { +if (!ttAccessAllowed('manage_advanced_settings') || !$user->isPluginEnabled('no')) { header('Location: access_denied.php'); exit(); } @@ -55,11 +55,11 @@ if ($request->isPost()) { $err->add($i18n->getKey('error.db')); } else $err->add($i18n->getKey('error.db')); - } else if ($request->getParameter('btn_cancel')) { + } elseif ($request->getParameter('btn_cancel')) { header('Location: notifications.php'); exit(); } -} // POST +} // isPost $smarty->assign('notification_to_delete', $notification_to_delete); $smarty->assign('forms', array($form->getName()=>$form->toArray()));