aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-07-20 17:55:22 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2023-08-10 10:57:33 +0200
commit1b102ca9b3c0e32752599b8df373a11af6f40df0 (patch)
treee418cc036961bcf1aa2c39fb41eec6d9ba26e9e0 /apps
parentec13f22ae317b65db4bf84726c90e3fc6b7a2a0c (diff)
downloadnextcloud-server-1b102ca9b3c0e32752599b8df373a11af6f40df0.tar.gz
nextcloud-server-1b102ca9b3c0e32752599b8df373a11af6f40df0.zip
Fix errors in UpdateGroupsService.php
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/user_ldap/lib/Service/UpdateGroupsService.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/user_ldap/lib/Service/UpdateGroupsService.php b/apps/user_ldap/lib/Service/UpdateGroupsService.php
index ba564819d01..5e463734079 100644
--- a/apps/user_ldap/lib/Service/UpdateGroupsService.php
+++ b/apps/user_ldap/lib/Service/UpdateGroupsService.php
@@ -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));
}