X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/a7ba11adfecf6cb906749efe5abce688363aef07..3eea3d000c2415bb7b36ab759a049420ca53ae2e:/admin_team_delete.php diff --git a/admin_team_delete.php b/admin_team_delete.php index 5cb2e854..6958ca0e 100644 --- a/admin_team_delete.php +++ b/admin_team_delete.php @@ -31,7 +31,7 @@ import('form.Form'); import('ttTeamHelper'); // Access check. -if (!ttAccessCheck(right_administer_site)) { +if (!ttAccessAllowed('administer_site')) { header('Location: access_denied.php'); exit(); } @@ -51,14 +51,14 @@ if ($request->isPost()) { header('Location: admin_teams.php'); exit(); } else - $errors->add($i18n->getKey('error.db')); + $err->add($i18n->getKey('error.db')); } if ($request->getParameter('btn_cancel')) { header('Location: admin_teams.php'); exit(); } -} // POST +} // isPost $smarty->assign('team_to_delete', $team_name); $smarty->assign('forms', array($form->getName()=>$form->toArray()));