Merge pull request #30281 from nextcloud/bugfix/30280/fix-confused-notifier-with-null-group

Ignore non-existing groups when notifying group shares
This commit is contained in:
Vincent Petry 2021-12-17 08:01:55 +01:00 committed by GitHub
commit e231338876
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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