X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=cf_dropdown_options.php;h=544eefdbeeb3bcb052716c229c1c8520785f14f1;hb=ad98b13400fdc2fa2299a22c9bd54c4cd27960c3;hp=e12900b2a525950f06d5fadbd11b63aa1b6b29e2;hpb=5ef582473f6b329be18ad83c61e053fdcd9c6ed5;p=timetracker.git diff --git a/cf_dropdown_options.php b/cf_dropdown_options.php index e12900b2..544eefdb 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 (!ttAccessCheck(right_manage_team) || !$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');