X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/fd0872d9e582113346fa1e93557f370286c5c9f2..2352b1096ea3b8301f06d3e5b072022ae08a2f73:/notification_delete.php diff --git a/notification_delete.php b/notification_delete.php index 46de065d..b18ac614 100644 --- a/notification_delete.php +++ b/notification_delete.php @@ -30,11 +30,15 @@ require_once('initialize.php'); import('form.Form'); import('ttNotificationHelper'); -// Access check. -if (!ttAccessAllowed('manage_advanced_settings') || !$user->isPluginEnabled('no')) { +// Access checks. +if (!ttAccessAllowed('manage_advanced_settings')) { header('Location: access_denied.php'); exit(); } +if (!$user->isPluginEnabled('no')) { + header('Location: feature_disabled.php'); + exit(); +} $cl_notification_id = (int)$request->getParameter('id'); $notification = ttNotificationHelper::get($cl_notification_id);