X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=notification_delete.php;h=834befbe3439eeb4b0dfcc1847a5e9403faba164;hb=b35ed34767de056ad0adef9d85060b587c1f6ce2;hp=a8a2e4989e9e272c4f94a934fb56e08a7b636c3c;hpb=eb55e2f8ca3859482a389795e03b45283e14ef36;p=timetracker.git diff --git a/notification_delete.php b/notification_delete.php index a8a2e498..834befbe 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 (!ttAccessCheck(right_manage_team) || !$user->isPluginEnabled('no')) { header('Location: access_denied.php'); exit(); } @@ -55,7 +55,7 @@ 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(); }