diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-08-01 14:22:30 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2016-08-29 14:13:26 +0200 |
commit | 6c365cb06d1aff8d44758be1337ba30acdcc49d7 (patch) | |
tree | 3f605a33729f4211c6a3d152e5b4ba3324a46bfb /apps/files_sharing | |
parent | c16b15d52e24eb8bcfabbf535c360d6580a6ee70 (diff) | |
download | nextcloud-server-6c365cb06d1aff8d44758be1337ba30acdcc49d7.tar.gz nextcloud-server-6c365cb06d1aff8d44758be1337ba30acdcc49d7.zip |
A shared storage is never a home storage - fixes #25582
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/lib/sharedstorage.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php index 3ceca430424..e1875fe2394 100644 --- a/apps/files_sharing/lib/sharedstorage.php +++ b/apps/files_sharing/lib/sharedstorage.php @@ -106,6 +106,16 @@ class Shared extends \OC\Files\Storage\Wrapper\Jail implements ISharedStorage { } /** + * @inheritdoc + */ + public function instanceOfStorage($class) { + if (in_array($class, ['\OC\Files\Storage\Home', '\OC\Files\ObjectStore\HomeObjectStoreStorage'])) { + return false; + } + return parent::instanceOfStorage($class); + } + + /** * @return string */ public function getShareId() { |