X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=cf_dropdown_option_edit.php;h=1013a54a4c2ccd00f5a9e272da4ce50d6c381095;hb=2ccee198591bc2ad5d80b5e1076246449d9232c1;hp=bf5b17e8561157b5a1c4706b90dc93e12eb28596;hpb=9e82b53fc5d8cb1e54b5fde774fa68a916f28b4c;p=timetracker.git diff --git a/cf_dropdown_option_edit.php b/cf_dropdown_option_edit.php index bf5b17e8..1013a54a 100644 --- a/cf_dropdown_option_edit.php +++ b/cf_dropdown_option_edit.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(); } @@ -64,7 +64,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.optionEditForm.name.focus()"');