X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/0e3c4d629800de449c5a1bb9da780993e5dc5277..0727196b6daade0ec63928fd7ab9b93b2aec47da:/cf_custom_fields.php 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');