aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/ajax
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-07-06 15:36:11 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-07-06 15:36:11 +0200
commit14eef434fff78bf39a926b1f27220b9ad1ebb833 (patch)
tree803517254eac46a26678f1a190c875e8c8e38c67 /apps/files_sharing/ajax
parentdba6ba252374777459ffbffc831f27c64132dd46 (diff)
parentdd20cd199567b592e24765a13981c5b52452aff0 (diff)
downloadnextcloud-server-14eef434fff78bf39a926b1f27220b9ad1ebb833.tar.gz
nextcloud-server-14eef434fff78bf39a926b1f27220b9ad1ebb833.zip
Merge pull request #17290 from owncloud/remove-readonly-wrapper
Replace readonly wrapper with permissions mask
Diffstat (limited to 'apps/files_sharing/ajax')
-rw-r--r--apps/files_sharing/ajax/shareinfo.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/ajax/shareinfo.php b/apps/files_sharing/ajax/shareinfo.php
index 3ea0fae8522..db6194d3f05 100644
--- a/apps/files_sharing/ajax/shareinfo.php
+++ b/apps/files_sharing/ajax/shareinfo.php
@@ -55,7 +55,7 @@ $path = $data['realPath'];
$isWritable = $linkItem['permissions'] & (\OCP\Constants::PERMISSION_UPDATE | \OCP\Constants::PERMISSION_CREATE);
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));
});
}