diff options
author | Kate <26026535+provokateurin@users.noreply.github.com> | 2024-10-29 10:26:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-29 10:26:18 +0100 |
commit | 7bd791f327d75d26862d67e07c4eb87d453b11d6 (patch) | |
tree | 25012e059da538499c8047cf728838b3e80a25c0 /apps | |
parent | 3521a11c4b5ffcce2a06b22cab7ca793768bebce (diff) | |
parent | 6c73ba339a3881524d66e271fe7658dc1349cd89 (diff) | |
download | nextcloud-server-7bd791f327d75d26862d67e07c4eb87d453b11d6.tar.gz nextcloud-server-7bd791f327d75d26862d67e07c4eb87d453b11d6.zip |
Merge pull request #48571 from nextcloud/backport/48532/stable30
Diffstat (limited to 'apps')
-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 42e42f52b9f..03d1bbd85b5 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()); |