镜像自地址
https://github.com/nextcloud/server.git
已同步 2024-07-29 20:15:55 +02:00
Fix #4789: Group admins cannot see disabled users
这个提交包含在:
父节点
63d98574e9
当前提交
2622dda8c2
@ -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);
|
||||
|
||||
|
正在加载...
在新工单中引用
屏蔽一个用户