]> wagnertech.de Git - timetracker.git/blobdiff - cf_custom_field_delete.php
More refactoring in reports.
[timetracker.git] / cf_custom_field_delete.php
index f4de4809841a317ca24ebe2519d628ad9ada08b0..86c10b1ff83288a953084b04bd63558fa8b4ff0e 100644 (file)
@@ -30,11 +30,15 @@ require_once('initialize.php');
 require_once('plugins/CustomFields.class.php');
 import('form.Form');
 
-// Access check.
-if (!ttAccessAllowed('manage_custom_fields') || !$user->isPluginEnabled('cf')) {
+// Access checks.
+if (!ttAccessAllowed('manage_custom_fields')) {
   header('Location: access_denied.php');
   exit();
 }
+if (!$user->isPluginEnabled('cf')) {
+  header('Location: feature_disabled.php');
+  exit();
+}
 
 $id = $request->getParameter('id');