From 19f43012f68bd1428262dbf6f95ea236f840ccf7 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Thu, 10 Oct 2024 11:12:27 -0100 Subject: [PATCH] ignore non-circles share while extracting permissions Signed-off-by: Maxence Lange --- lib/ShareByCircleProvider.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/ShareByCircleProvider.php b/lib/ShareByCircleProvider.php index c9ac5c727..5588520d6 100644 --- a/lib/ShareByCircleProvider.php +++ b/lib/ShareByCircleProvider.php @@ -690,6 +690,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) {