X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=cf_custom_fields.php;h=18de06059345d330fcefe564e145d510fcc7aa7d;hb=b0e8ffd3af439b5dc6dd5044a46a906d9833932b;hp=17a04af532783f9a71cba6705212f0932dfbaa9a;hpb=0e3c4d629800de449c5a1bb9da780993e5dc5277;p=timetracker.git diff --git a/cf_custom_fields.php b/cf_custom_fields.php index 17a04af5..18de0605 100644 --- a/cf_custom_fields.php +++ b/cf_custom_fields.php @@ -31,14 +31,14 @@ require_once('plugins/CustomFields.class.php'); import('form.Form'); // Access check. -if (!ttAccessCheck(right_manage_team)) { +if (!ttAccessCheck(right_manage_team) || !$user->isPluginEnabled('cf')) { header('Location: access_denied.php'); exit(); } $form = new Form('customFieldsForm'); -if ($request->getMethod() == 'POST') { +if ($request->isPost()) { if ($request->getParameter('btn_add')) { // The Add button clicked. Redirect to cf_custom_field_add.php page. header('Location: cf_custom_field_add.php');