diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-07-06 15:36:11 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-07-06 15:36:11 +0200 |
commit | 14eef434fff78bf39a926b1f27220b9ad1ebb833 (patch) | |
tree | 803517254eac46a26678f1a190c875e8c8e38c67 /apps/files_sharing/ajax | |
parent | dba6ba252374777459ffbffc831f27c64132dd46 (diff) | |
parent | dd20cd199567b592e24765a13981c5b52452aff0 (diff) | |
download | nextcloud-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.php | 2 |
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)); }); } |