diff --git a/lib/ShareByCircleProvider.php b/lib/ShareByCircleProvider.php index 19268bd63..719f04381 100644 --- a/lib/ShareByCircleProvider.php +++ b/lib/ShareByCircleProvider.php @@ -637,6 +637,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) {