X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=client_add.php;h=bd1516f16fecc8d05b564153140836f5d9ed3217;hb=60d2288b7fca6caf0f5d9d3eee972f040eb24fb0;hp=7a90d22b297fc85d808b12b4e24141e44ae38b56;hpb=9e82b53fc5d8cb1e54b5fde774fa68a916f28b4c;p=timetracker.git 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()"');