X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=cf_dropdown_options.php;h=3ee5294ebd4a8370cedd2ce295700fdd0a065bbb;hb=074e8daef75c2b729e75f350b52935a6b7ecfba8;hp=e12900b2a525950f06d5fadbd11b63aa1b6b29e2;hpb=5ef582473f6b329be18ad83c61e053fdcd9c6ed5;p=timetracker.git diff --git a/cf_dropdown_options.php b/cf_dropdown_options.php index e12900b2..3ee5294e 100644 --- a/cf_dropdown_options.php +++ b/cf_dropdown_options.php @@ -31,7 +31,7 @@ require_once('plugins/CustomFields.class.php'); import('form.Form'); // Access check. -if (!ttAccessCheck(right_manage_team)) { +if (!ttAccessAllowed('manage_custom_fields') || !$user->isPluginEnabled('cf')) { header('Location: access_denied.php'); exit(); } @@ -39,7 +39,7 @@ if (!ttAccessCheck(right_manage_team)) { $field_id = $request->getParameter('field_id'); $options = CustomFields::getOptions($field_id); if (false === $options) - $errors->add($i18n->getKey('error.db')); + $err->add($i18n->getKey('error.db')); $form = new Form('dropdownOptionsForm');