X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=cf_custom_field_edit.php;h=b8e0f8ece6e5f6cd82677dd997bd0141d873228e;hb=cb8e3de960b758147b34d8323054e7de70548619;hp=f368515ce0aa5bcb7afca351a2a306cb92622f13;hpb=9e82b53fc5d8cb1e54b5fde774fa68a916f28b4c;p=timetracker.git diff --git a/cf_custom_field_edit.php b/cf_custom_field_edit.php index f368515c..b8e0f8ec 100644 --- a/cf_custom_field_edit.php +++ b/cf_custom_field_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(); } @@ -70,7 +70,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()"');