posaune
[timetracker.git] / admin_groups.php
index a5521ad..ae66d15 100644 (file)
 // +----------------------------------------------------------------------+
 
 require_once('initialize.php');
-import('ttGroupHelper');
+import('ttOrgHelper');
 
-// Access check.
+// Access checks.
 if (!ttAccessAllowed('administer_site')) {
   header('Location: access_denied.php');
   exit();
 }
+// End of access checks.
 
-$smarty->assign('teams', ttGroupHelper::getTopGroups());
+$smarty->assign('groups', ttOrgHelper::getOrgs());
 $smarty->assign('title', $i18n->get('title.groups'));
-$smarty->assign('content_page_name', 'admin_teams.tpl');
+$smarty->assign('content_page_name', 'admin_groups.tpl');
 $smarty->display('index.tpl');