Skip to content

Commit

Permalink
ignore non-circles share while extracting permissions
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
  • Loading branch information
ArtificialOwl committed Oct 22, 2024
1 parent 1f004e4 commit cec20ec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ShareByCircleProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,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) {
Expand Down

0 comments on commit cec20ec

Please sign in to comment.