Merge pull request #30306 from nextcloud/backport/30281/stable23

[stable23] Ignore non-existing groups when notifying group shares
This commit is contained in:
MichaIng 2021-12-19 19:37:21 +01:00 committed by GitHub
commit 2217abfa44
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();
}