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

[stable21] Ignore non-existing groups when notifying group shares
This commit is contained in:
Louis 2021-12-20 10:20:27 +01:00 committed by GitHub
commit e259f6e20e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
}