summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/lib/proxy.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-06-10 12:38:19 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-06-14 10:14:07 +0200
commit790d51ea1efeb17c55870a5659a6f49e518d0ebe (patch)
tree8c3f6aa51dea670a9f9cc9ccd48fbbae9b09fea7 /apps/files_encryption/lib/proxy.php
parent277f25222a3a97d8140a9dbc77f517fe74705b5f (diff)
downloadnextcloud-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.php5
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;
}