summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/publicwebdav.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-07-01 15:45:23 +0200
committerRobin Appelman <icewind@owncloud.com>2015-07-01 15:45:23 +0200
commit365fafc9bcd18656c12e75af59c89e6f954d69b3 (patch)
tree0f107fbd68ec1232bb4ca28b7df96888282a2ca5 /apps/files_sharing/publicwebdav.php
parent5caeda33f155145a74f6108326deb13314eedff2 (diff)
downloadnextcloud-server-365fafc9bcd18656c12e75af59c89e6f954d69b3.tar.gz
nextcloud-server-365fafc9bcd18656c12e75af59c89e6f954d69b3.zip
use permissions mask wrapper instead of readonly wrapper
Diffstat (limited to 'apps/files_sharing/publicwebdav.php')
-rw-r--r--apps/files_sharing/publicwebdav.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/publicwebdav.php b/apps/files_sharing/publicwebdav.php
index be7530897f6..c0a9dc328d1 100644
--- a/apps/files_sharing/publicwebdav.php
+++ b/apps/files_sharing/publicwebdav.php
@@ -64,7 +64,7 @@ $server->on('beforeMethod', function () use ($server, $objectTree, $authBackend)
if (!$isWritable) {
\OC\Files\Filesystem::addStorageWrapper('readonly', function ($mountPoint, $storage) {
- return new \OCA\Files_Sharing\ReadOnlyWrapper(array('storage' => $storage));
+ return new \OC\Files\Storage\Wrapper\PermissionsMask(array('storage' => $storage, 'mask' => \OCP\Constants::PERMISSION_READ + \OCP\Constants::PERMISSION_SHARE));
});
}