X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=notification_delete.php;h=b18ac614fb6c5e2061127e889f9299365016024a;hb=109089e858e28200e714a790883c236230b3922f;hp=46de065d6b6f3ce7f28e053a5373dd6fb2d1fb23;hpb=fd0872d9e582113346fa1e93557f370286c5c9f2;p=timetracker.git 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);