fix bug in user list permission checks

This commit is contained in:
alejandro-campos 2019-11-05 17:18:38 +01:00
parent b409dde9c0
commit 4b9d6f1ae2
1 changed files with 1 additions and 1 deletions

View File

@ -418,7 +418,7 @@ if ($own_info['is_admin']) {
else { else {
foreach ($info1 as $key => $usr) { foreach ($info1 as $key => $usr) {
$u = get_user_info($key); $u = get_user_info($key);
$g = users_get_groups($key, 'AR', $u['is_admin']); $g = users_get_groups($key, false, $u['is_admin']);
$result = array_intersect($g, $own_groups); $result = array_intersect($g, $own_groups);
// Show users without profile too. // Show users without profile too.