X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=cf_dropdown_options.php;h=3ee5294ebd4a8370cedd2ce295700fdd0a065bbb;hb=3f7ed883e1c7d75aacc49900b403f8e84a68dc3f;hp=c8713caffd6d1449e3610de0ecdbf21bc1c3e36d;hpb=251996aed11c648ecaa30f77383e0384bfadf7a5;p=timetracker.git diff --git a/cf_dropdown_options.php b/cf_dropdown_options.php index c8713caf..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'); @@ -49,4 +49,3 @@ $smarty->assign('options', $options); $smarty->assign('title', $i18n->getKey('title.cf_dropdown_options')); $smarty->assign('content_page_name', 'cf_dropdown_options.tpl'); $smarty->display('index.tpl'); -?> \ No newline at end of file