Browse Source

Merge pull request #7292 from Neraste/fix/4789_disabled_users

Fix #4789: Group admins cannot see disabled users
tags/v13.0.0beta2
Lukas Reschke 6 years ago
parent
commit
4d200851f9
No account linked to committer's email address
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      settings/Controller/UsersController.php

+ 3
- 3
settings/Controller/UsersController.php View File

@@ -339,7 +339,9 @@ class UsersController extends Controller {

// Batch all groups the user is subadmin of when a group is specified
$batch = [];
if ($gid === '') {
if ($gid !== '' && $gid !== '_disabledUsers' && $gid !== '_everyone') {
$batch = $this->groupManager->displayNamesInGroup($gid, $pattern, $limit, $offset);
} else {
foreach ($subAdminOfGroups as $group) {
$groupUsers = $this->groupManager->displayNamesInGroup($group, $pattern, $limit, $offset);

@@ -347,8 +349,6 @@ class UsersController extends Controller {
$batch[$uid] = $displayName;
}
}
} else {
$batch = $this->groupManager->displayNamesInGroup($gid, $pattern, $limit, $offset);
}
$batch = $this->getUsersForUID($batch);


Loading…
Cancel
Save