X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=cf_dropdown_options.php;h=1afce7348ad0bb5f23282ab99034fdfd5f8321ff;hb=9eb2c5f542ed33fc1aba2e7392a5a29181cbfd1a;hp=a7718fbe9ec8215fb5188ddf8c24b841c155dd68;hpb=9e82b53fc5d8cb1e54b5fde774fa68a916f28b4c;p=timetracker.git diff --git a/cf_dropdown_options.php b/cf_dropdown_options.php index a7718fbe..1afce734 100644 --- a/cf_dropdown_options.php +++ b/cf_dropdown_options.php @@ -30,22 +30,26 @@ require_once('initialize.php'); require_once('plugins/CustomFields.class.php'); import('form.Form'); -// Access check. -if (!ttAccessCheck(right_manage_team)) { +// Access checks. +if (!ttAccessAllowed('manage_custom_fields')) { header('Location: access_denied.php'); exit(); } +if (!$user->isPluginEnabled('cf')) { + header('Location: feature_disabled.php'); + exit(); +} $field_id = $request->getParameter('field_id'); $options = CustomFields::getOptions($field_id); if (false === $options) - $err->add($i18n->getKey('error.db')); + $err->add($i18n->get('error.db')); $form = new Form('dropdownOptionsForm'); $smarty->assign('forms', array($form->getName()=>$form->toArray())); $smarty->assign('field_id', $field_id); $smarty->assign('options', $options); -$smarty->assign('title', $i18n->getKey('title.cf_dropdown_options')); +$smarty->assign('title', $i18n->get('title.cf_dropdown_options')); $smarty->assign('content_page_name', 'cf_dropdown_options.tpl'); $smarty->display('index.tpl');