7
Let me update the solution:
kernel/group.php
le="color: #000000"><?php if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { $sql .= ' '.$criteria->renderWhere(); $limit = $criteria->getLimit(); $start = $criteria->getStart(); }
to:
le="color: #000000"><?php if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { $sql .= ' '.$criteria->renderWhere(); $limit = 4;//number of itens in droplist $start = 1;//it gives groups 2,3,4,.... except ADMIN }
and
System/admin/users/userform.php
Here I gave in ADMIN AREA to group SELECIONADOR no rights to edit groups, only users. So XOOPS give an automated dropdown lis of the groups name.
le="color: #000000"><?php else { foreach ($groups as $key => $group) { $group_select[] = new XoopsFormHidden('groups[' . $key . ']', $group); }
So I changed the former code to the folowing, forcing the COLABORADOR to see the group´s name dropdownlist.
Added a condition $uid_value == '1' in order to COLABORADOR not see ADMIN´s group´s name dropdownlist. Admin continue to see all (global):
le="color: #000000"><?php else { if ($uid_value == '1') {$group_select[] = new XoopsFormHidden('groups[' . $key . ']', $group); } else {$group_select[] = new XoopsFormSelectGroup('<font style="font-size: 17px; color: #A65700"> (!)'._US_GROUPS.'</font>', 'groups', false, $groups, 5, true);}}