X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=cf_dropdown_options.php;h=1afce7348ad0bb5f23282ab99034fdfd5f8321ff;hb=e59d57b1fcf105382028dcfc0157a6ca84b0dc46;hp=02f59f56b350e6353551d060a136842e12107e68;hpb=a0dd058ab6007cfc6a72713215a7f4abb96f1b45;p=timetracker.git diff --git a/cf_dropdown_options.php b/cf_dropdown_options.php index 02f59f56..1afce734 100644 --- a/cf_dropdown_options.php +++ b/cf_dropdown_options.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(); +} $field_id = $request->getParameter('field_id'); $options = CustomFields::getOptions($field_id);