X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=admin_teams.php;h=6744582ed6da079c9f7fecc37f9ac9cbc717843f;hb=10a6f13349f497f4e2e5c7c4812fcb48db65310e;hp=a1f848a4f4a7d9766320bdf0efe7b570a5a4b075;hpb=5ef582473f6b329be18ad83c61e053fdcd9c6ed5;p=timetracker.git diff --git a/admin_teams.php b/admin_teams.php index a1f848a4..6744582e 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('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');