]> wagnertech.de Git - timetracker.git/blobdiff - notification_delete.php
Started to populate org_id during import of expense items.
[timetracker.git] / notification_delete.php
index 46de065d6b6f3ce7f28e053a5373dd6fb2d1fb23..b18ac614fb6c5e2061127e889f9299365016024a 100644 (file)
@@ -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);