X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=admin_team_delete.php;h=6958ca0e87ae976d32042dfd59181818a120a8af;hb=a83b2420a2de428f82c8cc64343bd1fdb8ff4a5e;hp=19de9a7e4525d8dd1a23af2a28229416196ec458;hpb=9e82b53fc5d8cb1e54b5fde774fa68a916f28b4c;p=timetracker.git diff --git a/admin_team_delete.php b/admin_team_delete.php index 19de9a7e..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(); } @@ -58,7 +58,7 @@ if ($request->isPost()) { header('Location: admin_teams.php'); exit(); } -} // POST +} // isPost $smarty->assign('team_to_delete', $team_name); $smarty->assign('forms', array($form->getName()=>$form->toArray()));