Fixed unordered groups
This commit is contained in:
parent
8a04e2eec2
commit
63e0df4434
|
@ -163,7 +163,7 @@ echo '<td>';
|
|||
|
||||
echo __('Group').' ';
|
||||
$own_info = get_user_info($config['id_user']);
|
||||
if (!$own_info['is_admin'] && check_acl($config['id_user'], 0, 'AW')) {
|
||||
if (!$own_info['is_admin'] && !check_acl($config['id_user'], 0, 'AR') && !check_acl($config['id_user'], 0, 'AW')) {
|
||||
$return_all_group = false;
|
||||
} else {
|
||||
$return_all_group = true;
|
||||
|
|
|
@ -293,7 +293,7 @@ function users_get_groups(
|
|||
}
|
||||
// Per-group permissions.
|
||||
else {
|
||||
$query = 'SELECT * FROM tgrupo ORDER BY parent,id_grupo DESC';
|
||||
$query = 'SELECT * FROM tgrupo ORDER BY nombre';
|
||||
$raw_groups = db_get_all_rows_sql($query);
|
||||
|
||||
$query = sprintf(
|
||||
|
|
Loading…
Reference in New Issue