X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/9e82b53fc5d8cb1e54b5fde774fa68a916f28b4c..b35ed34767de056ad0adef9d85060b587c1f6ce2:/client_add.php diff --git a/client_add.php b/client_add.php index 7a90d22b..bd1516f1 100644 --- a/client_add.php +++ b/client_add.php @@ -32,7 +32,7 @@ import('ttClientHelper'); import('ttTeamHelper'); // Access check. -if (!ttAccessCheck(right_manage_team)) { +if (!ttAccessCheck(right_manage_team) || !$user->isPluginEnabled('cl')) { header('Location: access_denied.php'); exit(); } @@ -80,7 +80,7 @@ if ($request->isPost()) { } else $err->add($i18n->getKey('error.client_exists')); } -} // POST +} // isPost $smarty->assign('forms', array($form->getName()=>$form->toArray())); $smarty->assign('onload', 'onLoad="document.clientForm.name.focus()"');