import('ttTeamHelper');
import('ttRoleHelper');
-// Access check.
+// Access checks.
if (!ttAccessAllowed('manage_roles')) {
header('Location: access_denied.php');
exit();
}
+// End of access checks.
$smarty->assign('active_roles', ttTeamHelper::getActiveRolesForUser());
$smarty->assign('inactive_roles', ttTeamHelper::getInactiveRolesForUser());
-$smarty->assign('title', $i18n->getKey('title.roles'));
+$smarty->assign('title', $i18n->get('title.roles'));
$smarty->assign('content_page_name', 'roles.tpl');
$smarty->display('index.tpl');