diff --git a/lib/ShareByCircleProvider.php b/lib/ShareByCircleProvider.php index 5044a943e..c5c6d983b 100644 --- a/lib/ShareByCircleProvider.php +++ b/lib/ShareByCircleProvider.php @@ -668,6 +668,10 @@ public function getAccessList($nodes, $currentAccess): array { $shareIds = $knownIds = $users = $remote = $mails = []; foreach ($this->shareWrapperService->getSharesByFileIds($ids, true, true) as $share) { + if (!$share->hasCircle()) { + continue; + } + $shareIds[] = $share->getId(); $circle = $share->getCircle(); foreach ($circle->getInheritedMembers() as $member) {