Skip to content

Commit

Permalink
owner can set extra for reshared
Browse files Browse the repository at this point in the history
  • Loading branch information
Antipkin-A authored and LinneyS committed Jun 16, 2022
1 parent c824e37 commit b12a9c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controller/sharingapicontroller.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ public function getShares($fileId) {
return new DataResponse([]);
}

$sharesUser = $this->shareManager->getSharesBy($userId, IShare::TYPE_USER, $sourceFile);
$sharesGroup = $this->shareManager->getSharesBy($userId, IShare::TYPE_GROUP, $sourceFile);
$sharesUser = $this->shareManager->getSharesBy($userId, IShare::TYPE_USER, $sourceFile, null, true);
$sharesGroup = $this->shareManager->getSharesBy($userId, IShare::TYPE_GROUP, $sourceFile, null, true);
$shares = array_merge($sharesUser, $sharesGroup);
$extras = $this->extraPermissions->getExtras($shares, $sourceFile);

Expand Down

0 comments on commit b12a9c2

Please sign in to comment.