diff --git a/lib/ShareByCircleProvider.php b/lib/ShareByCircleProvider.php index 8af908497..b3dff76d5 100644 --- a/lib/ShareByCircleProvider.php +++ b/lib/ShareByCircleProvider.php @@ -738,6 +738,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()) {