From f789aa0167426ae0c6dbf96a21be79d4df3367d0 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Mon, 2 Dec 2024 12:00:03 -0100 Subject: [PATCH] share must be linked to an existing circle Signed-off-by: Maxence Lange --- lib/ShareByCircleProvider.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ShareByCircleProvider.php b/lib/ShareByCircleProvider.php index 383768f6c..9166988cc 100644 --- a/lib/ShareByCircleProvider.php +++ b/lib/ShareByCircleProvider.php @@ -766,6 +766,9 @@ private function getAccessListShort(array $ids): array { $users = $mails = []; $remote = false; foreach ($this->shareWrapperService->getSharesByFileIds($ids, true) as $share) { + if (!$share->hasCircle()) { + continue; + } $circle = $share->getCircle(); foreach ($circle->getInheritedMembers() as $member) { switch ($member->getUserType()) {