mirror of
https://github.com/nextcloud/server.git
synced 2025-03-14 16:33:21 +00:00
Merge pull request #48570 from nextcloud/backport/48532/stable29
This commit is contained in:
commit
749b6f3f68
1 changed files with 0 additions and 6 deletions
|
@ -175,12 +175,6 @@ class UsersController extends Controller {
|
|||
foreach ($groups as $key => $group) {
|
||||
// $userCount += (int)$group['usercount'];
|
||||
$groupsIds[] = $group['id'];
|
||||
// we prevent subadmins from looking up themselves
|
||||
// so we lower the count of the groups he belongs to
|
||||
if (array_key_exists($group['id'], $userGroups)) {
|
||||
$groups[$key]['usercount']--;
|
||||
$userCount -= 1; // we also lower from one the total count
|
||||
}
|
||||
}
|
||||
|
||||
$userCount += $this->userManager->countUsersOfGroups($groupsInfo->getGroups());
|
||||
|
|
Loading…
Reference in a new issue