X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=notification_edit.php;h=1c36865f392e9eda0da9ee62387194f1a6cdf56b;hb=c7f2e7126f6f508487a23d0770ca4f8543278379;hp=431798285309b815cdf11dac919a1bab70f4adc1;hpb=fd0872d9e582113346fa1e93557f370286c5c9f2;p=timetracker.git diff --git a/notification_edit.php b/notification_edit.php index 43179828..1c36865f 100644 --- a/notification_edit.php +++ b/notification_edit.php @@ -33,11 +33,15 @@ import('form.Form'); import('ttFavReportHelper'); 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(); +} $notification_id = (int) $request->getParameter('id'); $fav_reports = ttFavReportHelper::getReports($user->id);