X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/251996aed11c648ecaa30f77383e0384bfadf7a5..10a6f13349f497f4e2e5c7c4812fcb48db65310e:/admin_teams.php diff --git a/admin_teams.php b/admin_teams.php index 73777d22..6744582e 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('title', $i18n->getKey('title.teams')); +$smarty->assign('teams', ttGroupHelper::getTopGroups()); +$smarty->assign('title', $i18n->get('title.groups')); $smarty->assign('content_page_name', 'admin_teams.tpl'); $smarty->display('index.tpl'); -?> \ No newline at end of file