diff options
author | Vincent Petry <vincent@nextcloud.com> | 2021-12-17 08:01:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-17 08:01:55 +0100 |
commit | e23133887644a2a024d0458c849b857cb85bd7f4 (patch) | |
tree | 8c5687b938a29e5ef6c6e824754415ff3cf62cf1 /apps/files_sharing | |
parent | 194981318c20b4e53239e7dfb6a161d525bdb279 (diff) | |
parent | 4559a46c8d9497e9d923ea6c6cd8b7cf14729b1b (diff) | |
download | nextcloud-server-e23133887644a2a024d0458c849b857cb85bd7f4.tar.gz nextcloud-server-e23133887644a2a024d0458c849b857cb85bd7f4.zip |
Merge pull request #30281 from nextcloud/bugfix/30280/fix-confused-notifier-with-null-group
Ignore non-existing groups when notifying group shares
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/lib/Notification/Notifier.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/Notification/Notifier.php b/apps/files_sharing/lib/Notification/Notifier.php index 7d79165dd26..d35e22c935d 100644 --- a/apps/files_sharing/lib/Notification/Notifier.php +++ b/apps/files_sharing/lib/Notification/Notifier.php @@ -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(); } |