diff options
author | Maksim Sukharev <antreesy.web@gmail.com> | 2024-10-02 15:25:19 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-10-04 18:22:16 +0000 |
commit | 6c73ba339a3881524d66e271fe7658dc1349cd89 (patch) | |
tree | ff5684efc073c2d0cf738d81f104666e61c84dc2 /apps | |
parent | 561a11b311d4847bdd939d1af7b6de82ee3d465f (diff) | |
download | nextcloud-server-6c73ba339a3881524d66e271fe7658dc1349cd89.tar.gz nextcloud-server-6c73ba339a3881524d66e271fe7658dc1349cd89.zip |
fix: do not reduce count for subadmins if they are members of groupbackport/48532/stable30
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
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()); |