Skip to content

Commit

Permalink
Merge pull request #42931 from hrenard/master
Browse files Browse the repository at this point in the history
  • Loading branch information
Altahrim authored Mar 26, 2024
2 parents 4223c74 + e389e63 commit 42f4e6a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/private/Group/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,7 @@ public function addUser(IUser $user): void {
foreach ($this->backends as $backend) {
if ($backend->implementsActions(\OC\Group\Backend::ADD_TO_GROUP)) {
$backend->addToGroup($user->getUID(), $this->gid);
if ($this->users) {
$this->users[$user->getUID()] = $user;
}
$this->users[$user->getUID()] = $user;

$this->dispatcher->dispatchTyped(new UserAddedEvent($this, $user));

Expand Down

0 comments on commit 42f4e6a

Please sign in to comment.