Skip to content

Commit

Permalink
Merge pull request #1793 from nextcloud/fix/1714/has-circle
Browse files Browse the repository at this point in the history
Share must be linked to an existing circle
  • Loading branch information
ArtificialOwl authored Dec 11, 2024
2 parents af6395d + d7a22c2 commit faf5c58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/ShareByCircleProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,9 @@ private function getAccessListShort(array $ids): array {
$users = $mails = [];
$remote = false;
foreach ($this->shareWrapperService->getSharesByFileIds($ids, true) as $share) {
if (!$share->hasCircle()) {
continue;
}
$circle = $share->getCircle();
foreach ($circle->getInheritedMembers() as $member) {
switch ($member->getUserType()) {
Expand Down

0 comments on commit faf5c58

Please sign in to comment.