X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=notification_add.php;h=7dd680ff3289cdf9c9850e9e516953afefba8248;hb=9339284bfdaba5a0c2a4e3c9fa000194a508d0bf;hp=6d0e4d31a2d894affbbae46f3ea0673f7385bb2a;hpb=fd0872d9e582113346fa1e93557f370286c5c9f2;p=timetracker.git diff --git a/notification_add.php b/notification_add.php index 6d0e4d31..7dd680ff 100644 --- a/notification_add.php +++ b/notification_add.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(); +} $fav_reports = ttFavReportHelper::getReports($user->id);