Skip to content

Commit e231338

Browse files
authored
Merge pull request #30281 from nextcloud/bugfix/30280/fix-confused-notifier-with-null-group
Ignore non-existing groups when notifying group shares
2 parents 1949813 + 4559a46 commit e231338

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/files_sharing/lib/Notification/Notifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ protected function parseShareInvitation(IShare $share, INotification $notificati
192192
}
193193

194194
$group = $this->groupManager->get($share->getSharedWith());
195-
if (!$group->inGroup($user)) {
195+
if ($group === null || !$group->inGroup($user)) {
196196
throw new AlreadyProcessedException();
197197
}
198198

0 commit comments

Comments
 (0)