Skip to content

Commit

Permalink
Set proper root path for single file shares originating from other st…
Browse files Browse the repository at this point in the history
…orages

Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Aug 1, 2019
1 parent 3f8f0f7 commit d5f19c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/files_sharing/lib/SharedStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ private function init() {
Filesystem::initMountPoints($this->superShare->getShareOwner());
$sourcePath = $this->ownerView->getPath($this->superShare->getNodeId());
list($this->nonMaskedStorage, $this->rootPath) = $this->ownerView->resolvePath($sourcePath);
if ($this->nonMaskedStorage->getMountPoint() === $this->ownerView->getAbsolutePath($sourcePath)) {
$this->rootPath = '/';
}
$this->storage = new PermissionsMask([
'storage' => $this->nonMaskedStorage,
'mask' => $this->superShare->getPermissions()
Expand Down

0 comments on commit d5f19c1

Please sign in to comment.