aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings
diff options
context:
space:
mode:
authorMaksim Sukharev <antreesy.web@gmail.com>2024-10-02 15:25:19 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-10-04 18:04:53 +0000
commitb1e5de9e9b4726c843ccedd45bc337ddd219e93f (patch)
tree2ed9348daba88cc50120e648f3dd792dd935a5a4 /apps/settings
parent3f73bdb0ba8c1074cc612bdd0421b4dcfb01c5e2 (diff)
downloadnextcloud-server-backport/48532/stable28.tar.gz
nextcloud-server-backport/48532/stable28.zip
fix: do not reduce count for subadmins if they are members of groupbackport/48532/stable28
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Diffstat (limited to 'apps/settings')
-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 e517e519593..78e6ad2794b 100644
--- a/apps/settings/lib/Controller/UsersController.php
+++ b/apps/settings/lib/Controller/UsersController.php
@@ -221,12 +221,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());
$disabledUsers = $this->userManager->countDisabledUsersOfGroups($groupsIds);