diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-07-21 09:34:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-21 09:34:36 +0200 |
commit | 407a500745a5dff1b235011d29e092d48dd66d3b (patch) | |
tree | 14de4382d34b884132243993a14e2c02b6c87bf7 /apps | |
parent | b1954bed97ee37f80e5f0b3bc785c631462aeac7 (diff) | |
parent | ae8a3ce085dd746adad250feb4742e7b1a148d21 (diff) | |
download | nextcloud-server-407a500745a5dff1b235011d29e092d48dd66d3b.tar.gz nextcloud-server-407a500745a5dff1b235011d29e092d48dd66d3b.zip |
Merge pull request #5803 from nextcloud/fix-public-links
fix preview for public links
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/appinfo/v1/publicwebdav.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/dav/appinfo/v1/publicwebdav.php b/apps/dav/appinfo/v1/publicwebdav.php index 3ef1c2e62a5..37fcebe605c 100644 --- a/apps/dav/appinfo/v1/publicwebdav.php +++ b/apps/dav/appinfo/v1/publicwebdav.php @@ -79,10 +79,12 @@ $server = $serverFactory->createServer($baseuri, $requestUri, $authPlugin, funct \OC\Files\Filesystem::addStorageWrapper('sharePermissions', function ($mountPoint, $storage) use ($share) { return new \OC\Files\Storage\Wrapper\PermissionsMask(array('storage' => $storage, 'mask' => $share->getPermissions() | \OCP\Constants::PERMISSION_SHARE)); }); + \OC\Files\Filesystem::logWarningWhenAddingStorageWrapper($previousLog); + OC_Util::tearDownFS(); OC_Util::setupFS($owner); - $ownerView = \OC\Files\Filesystem::getView(); + $ownerView = new \OC\Files\View('/'. $owner . '/files'); $path = $ownerView->getPath($fileId); $fileInfo = $ownerView->getFileInfo($path); $linkCheckPlugin->setFileInfo($fileInfo); |