X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=cf_dropdown_option_add.php;h=ecf4892d61c0188f2948f70f85df097b147365d0;hb=cd5e077ecb497431decde4835138b877d63b261c;hp=a8de8e5ce50970e57f08596e3ae854ad27f33bc1;hpb=9e82b53fc5d8cb1e54b5fde774fa68a916f28b4c;p=timetracker.git diff --git a/cf_dropdown_option_add.php b/cf_dropdown_option_add.php index a8de8e5c..ecf4892d 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 (!ttAccessCheck(right_manage_team) || !$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()"');