X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=cf_dropdown_option_delete.php;h=4cb2aca8a13effd1ef536d01e5989a434e450e6c;hb=1c55e1b9d6da2173f7e946011908c02dd80df26d;hp=0a1f25ba076b13d1406a99524d78a4f3f22bdffa;hpb=a0dd058ab6007cfc6a72713215a7f4abb96f1b45;p=timetracker.git diff --git a/cf_dropdown_option_delete.php b/cf_dropdown_option_delete.php index 0a1f25ba..4cb2aca8 100644 --- a/cf_dropdown_option_delete.php +++ b/cf_dropdown_option_delete.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_id = $request->getParameter('id'); $form = new Form('optionDeleteForm');