X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=cf_custom_field_add.php;h=1d293d37733af8d3f5b76d2b630838a32eafb823;hb=cd5e077ecb497431decde4835138b877d63b261c;hp=656cb9bd2e1c0c85875bb74591cbccffe9dc12fb;hpb=9e82b53fc5d8cb1e54b5fde774fa68a916f28b4c;p=timetracker.git diff --git a/cf_custom_field_add.php b/cf_custom_field_add.php index 656cb9bd..1d293d37 100644 --- a/cf_custom_field_add.php +++ b/cf_custom_field_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(); } @@ -65,7 +65,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.fieldForm.name.focus()"');