]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix errors in UpdateGroupsService.php
authorCôme Chilliet <come.chilliet@nextcloud.com>
Thu, 20 Jul 2023 15:55:22 +0000 (17:55 +0200)
committerCôme Chilliet <come.chilliet@nextcloud.com>
Thu, 10 Aug 2023 08:57:33 +0000 (10:57 +0200)
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
apps/user_ldap/lib/Service/UpdateGroupsService.php

index ba564819d01a162ff5dacce8ab9bd20acee67c1c..5e463734079ff991ced531169873e42486a8ce1c 100644 (file)
@@ -72,9 +72,9 @@ class UpdateGroupsService {
                        return;
                }
 
-               $this->service->handleKnownGroups(array_intersect($actualGroups, $knownGroups));
-               $this->service->handleCreatedGroups(array_diff($actualGroups, $knownGroups));
-               $this->service->handleRemovedGroups(array_diff($knownGroups, $actualGroups));
+               $this->handleKnownGroups(array_intersect($actualGroups, $knownGroups));
+               $this->handleCreatedGroups(array_diff($actualGroups, $knownGroups));
+               $this->handleRemovedGroups(array_diff($knownGroups, $actualGroups));
 
                $this->logger->debug('service "updateGroups" – Finished.');
        }
@@ -150,7 +150,7 @@ class UpdateGroupsService {
                        $this->logger->info('service "updateGroups" – new group "' . $createdGroup . '" found.');
 
                        $users = $this->groupBackend->usersInGroup($createdGroup);
-                       $groupObject = $this->groupManager->get($group);
+                       $groupObject = $this->groupManager->get($createdGroup);
                        if ($groupObject instanceof IGroup) {
                                $this->dispatcher->dispatchTyped(new GroupCreatedEvent($groupObject));
                        }