Merge pull request #30308 from nextcloud/backport/30281/stable21

[stable21] Ignore non-existing groups when notifying group shares
pull/30346/head
Louis 2021-12-20 10:20:27 +07:00 committed by GitHub
commit e259f6e20e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

@ -193,7 +193,7 @@ class Notifier implements INotifier {
}
$group = $this->groupManager->get($share->getSharedWith());
if (!$group->inGroup($user)) {
if ($group === null || !$group->inGroup($user)) {
throw new AlreadyProcessedException();
}