diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-04-22 15:28:06 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-04-22 15:28:06 +0200 |
commit | 03b7f1d015e8cd622ddd3a5a07f1afa31a293229 (patch) | |
tree | b83180f464c58719de77a2cf747d867bbc6bf73a /apps/files_sharing/lib | |
parent | 42d9ba0f83f3e4b1d0eaa4aa60cddc89f239dda7 (diff) | |
download | nextcloud-server-03b7f1d015e8cd622ddd3a5a07f1afa31a293229.tar.gz nextcloud-server-03b7f1d015e8cd622ddd3a5a07f1afa31a293229.zip |
use the permissions mask cache wrapper instead of the read only cache
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r-- | apps/files_sharing/lib/readonlywrapper.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/readonlywrapper.php b/apps/files_sharing/lib/readonlywrapper.php index 067000ff47c..a5d84f7f5a2 100644 --- a/apps/files_sharing/lib/readonlywrapper.php +++ b/apps/files_sharing/lib/readonlywrapper.php @@ -23,7 +23,9 @@ namespace OCA\Files_Sharing; +use OC\Files\Cache\Wrapper\CachePermissionsMask; use OC\Files\Storage\Wrapper\Wrapper; +use OCP\Constants; class ReadOnlyWrapper extends Wrapper { public function isUpdatable($path) { @@ -66,6 +68,7 @@ class ReadOnlyWrapper extends Wrapper { if (!$storage) { $storage = $this; } - return new ReadOnlyCache($storage); + $sourceCache = $this->storage->getCache($path, $storage); + return new CachePermissionsMask($sourceCache, Constants::PERMISSION_READ | Constants::PERMISSION_SHARE); } } |