X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/5ef582473f6b329be18ad83c61e053fdcd9c6ed5..e616d14ff2173bd13155592c0bdba23636376ffe:/admin_teams.php diff --git a/admin_teams.php b/admin_teams.php index a1f848a4..55df54fc 100644 --- a/admin_teams.php +++ b/admin_teams.php @@ -27,16 +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');