Skip to content

Commit

Permalink
Fix errors in UpdateGroupsService.php
Browse files Browse the repository at this point in the history
Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc committed Jul 20, 2023
1 parent 56fb076 commit c6b9696
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/user_ldap/lib/Service/UpdateGroupsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ public function updateGroups(): void {
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.');
}
Expand Down Expand Up @@ -150,7 +150,7 @@ public function handleCreatedGroups(array $createdGroups): void {
$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));
}
Expand Down

0 comments on commit c6b9696

Please sign in to comment.