mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -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
d750eb1da8
commit
3b5dd77275
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue