diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-06-10 12:38:19 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-06-14 10:14:07 +0200 |
commit | 790d51ea1efeb17c55870a5659a6f49e518d0ebe (patch) | |
tree | 8c3f6aa51dea670a9f9cc9ccd48fbbae9b09fea7 /apps/files_encryption/lib/proxy.php | |
parent | 277f25222a3a97d8140a9dbc77f517fe74705b5f (diff) | |
download | nextcloud-server-790d51ea1efeb17c55870a5659a6f49e518d0ebe.tar.gz nextcloud-server-790d51ea1efeb17c55870a5659a6f49e518d0ebe.zip |
Fix checking for external share in encryption
Diffstat (limited to 'apps/files_encryption/lib/proxy.php')
-rw-r--r-- | apps/files_encryption/lib/proxy.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_encryption/lib/proxy.php b/apps/files_encryption/lib/proxy.php index 126a593ee3c..b1af4676852 100644 --- a/apps/files_encryption/lib/proxy.php +++ b/apps/files_encryption/lib/proxy.php @@ -64,7 +64,10 @@ class Proxy extends \OC_FileProxy { // we don't encrypt server-to-server shares list($storage, ) = \OC\Files\Filesystem::resolvePath($path); - if ($storage instanceof OCA\Files_Sharing\External\Storage) { + /** + * @var \OCP\Files\Storage $storage + */ + if ($storage->instanceOfStorage('OCA\Files_Sharing\External\Storage')) { return true; } |