Fixed unordered groups

This commit is contained in:
Daniel Maya 2019-06-28 12:11:25 +02:00
parent 8a04e2eec2
commit 63e0df4434
2 changed files with 2 additions and 2 deletions

View File

@ -163,7 +163,7 @@ echo '<td>';
echo __('Group').'&nbsp;';
$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;

View File

@ -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(