X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=cf_dropdown_option_add.php;h=f87003d154918c8d184c09178880182567cca683;hb=7916f561fed6b50348f144fc411ca82ee9bd5ebb;hp=a8de8e5ce50970e57f08596e3ae854ad27f33bc1;hpb=9e82b53fc5d8cb1e54b5fde774fa68a916f28b4c;p=timetracker.git diff --git a/cf_dropdown_option_add.php b/cf_dropdown_option_add.php index a8de8e5c..f87003d1 100644 --- a/cf_dropdown_option_add.php +++ b/cf_dropdown_option_add.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(); } @@ -62,7 +62,7 @@ if ($request->isPost()) { } else $err->add($i18n->getKey('error.db')); } -} // POST +} // isPost $smarty->assign('forms', array($form->getName()=>$form->toArray())); $smarty->assign('onload', 'onLoad="document.optionAddForm.name.focus()"');