fix bug in user list permission checks
This commit is contained in:
parent
b409dde9c0
commit
4b9d6f1ae2
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue