diff options
author | Maksim Sukharev <antreesy.web@gmail.com> | 2024-10-02 15:25:19 +0200 |
---|---|---|
committer | Maksim Sukharev <antreesy.web@gmail.com> | 2024-10-02 18:32:53 +0200 |
commit | 0d6acbf9e4658c929e548434cbafe0dbfe6e9d6b (patch) | |
tree | 10fb0df11900f59402ad96a778f6da6e8c0b2438 | |
parent | 004d7dac91b8e6759f0279e6f932fe03d6203ba2 (diff) | |
download | nextcloud-server-0d6acbf9e4658c929e548434cbafe0dbfe6e9d6b.tar.gz nextcloud-server-0d6acbf9e4658c929e548434cbafe0dbfe6e9d6b.zip |
fix: do not reduce count for subadmins if they are members of groupfix/48437/dont-exclude-user
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
-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()); |