]> wagnertech.de Git - timetracker.git/blobdiff - cf_dropdown_option_add.php
Added users to new import.
[timetracker.git] / cf_dropdown_option_add.php
index b9500833d31679ff85a6b713386e96e1111a2f88..7b49424e5179eb54c78239cdbb2577c2f879f7d3 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();
+}
 
 $cl_field_id = $request->getParameter('field_id');
 $field = CustomFields::getField($cl_field_id);