X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=client_delete.php;h=eae300500a111c8b0ab6ec337c5556cb0d51f917;hb=7916f561fed6b50348f144fc411ca82ee9bd5ebb;hp=e566455a86de0669633ae99d936bdb539eddc1d0;hpb=a7ba11adfecf6cb906749efe5abce688363aef07;p=timetracker.git diff --git a/client_delete.php b/client_delete.php index e566455a..eae30050 100644 --- a/client_delete.php +++ b/client_delete.php @@ -31,7 +31,7 @@ import('form.Form'); import('ttClientHelper'); // Access check. -if (!ttAccessCheck(right_manage_team)) { +if (!ttAccessAllowed('manage_clients') || !$user->isPluginEnabled('cl')) { header('Location: access_denied.php'); exit(); } @@ -55,16 +55,16 @@ if ($request->isPost()) { header('Location: clients.php'); exit(); } else - $errors->add($i18n->getKey('error.db')); + $err->add($i18n->getKey('error.db')); } - } else - $errors->add($i18n->getKey('error.db')); + } else + $err->add($i18n->getKey('error.db')); if ($request->getParameter('btn_cancel')) { header('Location: clients.php'); exit(); } -} // POST +} // isPost $smarty->assign('client_to_delete', $client_to_delete); $smarty->assign('forms', array($form->getName()=>$form->toArray()));