X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=cf_custom_field_delete.php;h=86c10b1ff83288a953084b04bd63558fa8b4ff0e;hb=45c855269d952873285f7a835e82fc2b3eff3971;hp=f4de4809841a317ca24ebe2519d628ad9ada08b0;hpb=a0dd058ab6007cfc6a72713215a7f4abb96f1b45;p=timetracker.git diff --git a/cf_custom_field_delete.php b/cf_custom_field_delete.php index f4de4809..86c10b1f 100644 --- a/cf_custom_field_delete.php +++ b/cf_custom_field_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(); +} $id = $request->getParameter('id');