mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Discard share notification for non-existing groups
Group shares might exist even after a group got deleted. This fix catches the situation and discards the notification for the obsolete group. Signed-off-by: Vincent Petry <vincent@nextcloud.com> Co-authored-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
a47da9722d
commit
4559a46c8d
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue