X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=cf_dropdown_option_edit.php;h=ba486ae98413f7b698cc8ba7b9939d0b4c80e985;hb=ad98b13400fdc2fa2299a22c9bd54c4cd27960c3;hp=bf5b17e8561157b5a1c4706b90dc93e12eb28596;hpb=9e82b53fc5d8cb1e54b5fde774fa68a916f28b4c;p=timetracker.git diff --git a/cf_dropdown_option_edit.php b/cf_dropdown_option_edit.php index bf5b17e8..ba486ae9 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 (!ttAccessCheck(right_manage_team) || !$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()"');