fix subadmin user count for empty groups
This commit is contained in:
parent
781bca2437
commit
18f0bafd88
|
@ -568,6 +568,7 @@ class UsersController extends Controller {
|
||||||
} else {
|
} else {
|
||||||
$groups = $this->groupManager->getSubAdmin()->getSubAdminsGroups($this->userSession->getUser());
|
$groups = $this->groupManager->getSubAdmin()->getSubAdminsGroups($this->userSession->getUser());
|
||||||
|
|
||||||
|
$uniqueUsers = [];
|
||||||
foreach ($groups as $group) {
|
foreach ($groups as $group) {
|
||||||
foreach($group->getUsers() as $uid => $displayName) {
|
foreach($group->getUsers() as $uid => $displayName) {
|
||||||
$uniqueUsers[$uid] = true;
|
$uniqueUsers[$uid] = true;
|
||||||
|
|
Loading…
Reference in New Issue