aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorKate <26026535+provokateurin@users.noreply.github.com>2024-10-29 10:26:18 +0100
committerGitHub <noreply@github.com>2024-10-29 10:26:18 +0100
commit7bd791f327d75d26862d67e07c4eb87d453b11d6 (patch)
tree25012e059da538499c8047cf728838b3e80a25c0 /apps
parent3521a11c4b5ffcce2a06b22cab7ca793768bebce (diff)
parent6c73ba339a3881524d66e271fe7658dc1349cd89 (diff)
downloadnextcloud-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.php6
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());