roles as $slug => $role) { // make sure Super Admin usergroup should be included or // whether the current group DOES NOT support super admin caps if ($includeSuperAdmin || !JAccess::checkGroup($slug, 'core.admin')) { $groups[] = JHtml::fetch('select.option', $slug, $role['name']); } } /** * @todo should we push also a record to support "Guest" users? */ // reverse the roles (from the lowest to the highest) $groups = array_reverse($groups); return $groups; } }