X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/2ffa361a7610cbd1334754da314e4783226df689..a8a191541d6f05b08bd8331bdf409af5abfac896:/cf_dropdown_option_add.php diff --git a/cf_dropdown_option_add.php b/cf_dropdown_option_add.php index b9500833..7b49424e 100644 --- a/cf_dropdown_option_add.php +++ b/cf_dropdown_option_add.php @@ -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);