mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
fix subadmin user count for empty groups
This commit is contained in:
parent
781bca2437
commit
18f0bafd88
1 changed files with 1 additions and 0 deletions
|
|
@ -568,6 +568,7 @@ class UsersController extends Controller {
|
|||
} else {
|
||||
$groups = $this->groupManager->getSubAdmin()->getSubAdminsGroups($this->userSession->getUser());
|
||||
|
||||
$uniqueUsers = [];
|
||||
foreach ($groups as $group) {
|
||||
foreach($group->getUsers() as $uid => $displayName) {
|
||||
$uniqueUsers[$uid] = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue