X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=client_edit.php;h=2b408c5da54195ff096101516c17817f3ab6b449;hb=e84f77ca5b0a5470425cac47aa90563508793699;hp=c64618d18369f064bb030b49b72552763622e5c0;hpb=9e82b53fc5d8cb1e54b5fde774fa68a916f28b4c;p=timetracker.git diff --git a/client_edit.php b/client_edit.php index c64618d1..2b408c5d 100644 --- a/client_edit.php +++ b/client_edit.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(); } @@ -113,7 +113,7 @@ if ($request->isPost()) { $err->add($i18n->getKey('error.client_exists')); } } -} // POST +} // isPost $smarty->assign('forms', array($form->getName()=>$form->toArray())); $smarty->assign('title', $i18n->getKey('title.edit_client'));