From 38b6e2525405b401106b222866c837b6e543bd8e 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 Signed-off-by: Thomas Citharel --- lib/ShareByCircleProvider.php | 4 ++++ 1 file changed, 4 insertions(+) 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) {