diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2024-10-04 20:03:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-04 20:03:18 +0200 |
commit | 67e09281e3deb65539182840abee8f4a97cc6ffc (patch) | |
tree | e4c759386b7b5a6e0b2b1916b785247d7c4d644a /apps/settings | |
parent | 5c0bf3d4d1ce88dc97fb37c9bb890acfa96182ae (diff) | |
parent | 0d6acbf9e4658c929e548434cbafe0dbfe6e9d6b (diff) | |
download | nextcloud-server-67e09281e3deb65539182840abee8f4a97cc6ffc.tar.gz nextcloud-server-67e09281e3deb65539182840abee8f4a97cc6ffc.zip |
Merge pull request #48532 from nextcloud/fix/48437/dont-exclude-user
fix: do not reduce count for subadmins if they are members of group
Diffstat (limited to 'apps/settings')
-rw-r--r-- | apps/settings/lib/Controller/UsersController.php | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/apps/settings/lib/Controller/UsersController.php b/apps/settings/lib/Controller/UsersController.php index 88a2a6ba6eb..2e3b0d80ebc 100644 --- a/apps/settings/lib/Controller/UsersController.php +++ b/apps/settings/lib/Controller/UsersController.php @@ -154,12 +154,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()); |