diff options
author | Robin Appelman <robin@icewind.nl> | 2016-12-14 14:35:45 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2016-12-15 16:01:30 +0100 |
commit | 24396e4fa3cd0945dc10366b07bc54d149edc6a9 (patch) | |
tree | 72e9e75e08df7dee821b593565d4092943009dbd /apps/files_sharing/lib | |
parent | 9ed3f6614789a67a83b730b6afee4641668c83b2 (diff) | |
download | nextcloud-server-24396e4fa3cd0945dc10366b07bc54d149edc6a9.tar.gz nextcloud-server-24396e4fa3cd0945dc10366b07bc54d149edc6a9.zip |
use unmasked permissions in shared scanner
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r-- | apps/files_sharing/lib/Scanner.php | 9 | ||||
-rw-r--r-- | apps/files_sharing/lib/sharedstorage.php | 3 |
2 files changed, 9 insertions, 3 deletions
diff --git a/apps/files_sharing/lib/Scanner.php b/apps/files_sharing/lib/Scanner.php index 6982f1b4612..f99c01489ee 100644 --- a/apps/files_sharing/lib/Scanner.php +++ b/apps/files_sharing/lib/Scanner.php @@ -31,6 +31,11 @@ use OC\Files\ObjectStore\NoopScanner; * Scanner for SharedStorage */ class Scanner extends \OC\Files\Cache\Scanner { + /** + * @var \OCA\Files_Sharing\SharedStorage $storage + */ + protected $storage; + private $sourceScanner; /** @@ -46,8 +51,8 @@ class Scanner extends \OC\Files\Cache\Scanner { if ($data === null) { return null; } - list($sourceStorage, $internalPath) = $this->storage->resolvePath($path); - $data['permissions'] = $sourceStorage->getPermissions($internalPath); + $internalPath = $this->storage->getSourcePath($path); + $data['permissions'] = $this->storage->getSourceStorage()->getPermissions($internalPath); return $data; } diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php index 9b6d53e1826..4a79c49ca9b 100644 --- a/apps/files_sharing/lib/sharedstorage.php +++ b/apps/files_sharing/lib/sharedstorage.php @@ -425,7 +425,8 @@ class Shared extends \OC\Files\Storage\Wrapper\Jail implements ISharedStorage { } public function getSourceStorage() { - return $this->getWrapperStorage(); + $this->init(); + return $this->nonMaskedStorage; } public function getWrapperStorage() { |