X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/251996aed11c648ecaa30f77383e0384bfadf7a5..7ca15b5853146dd809f2ad3f5b2e1d9dab4f8dd4:/admin_teams.php diff --git a/admin_teams.php b/admin_teams.php index 73777d22..55df54fc 100644 --- a/admin_teams.php +++ b/admin_teams.php @@ -27,17 +27,15 @@ // +----------------------------------------------------------------------+ require_once('initialize.php'); -import('form.Form'); -import('ttTeamHelper'); +import('ttGroupHelper'); // Access check. -if (!ttAccessCheck(right_administer_site)) { +if (!ttAccessAllowed('administer_site')) { header('Location: access_denied.php'); exit(); } -$smarty->assign('teams', ttTeamHelper::getTeams()); +$smarty->assign('teams', ttGroupHelper::getTopGroups()); $smarty->assign('title', $i18n->getKey('title.teams')); $smarty->assign('content_page_name', 'admin_teams.tpl'); $smarty->display('index.tpl'); -?> \ No newline at end of file