diff options
author | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-08-02 22:28:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-02 22:28:37 +0200 |
commit | 66f86bc6860f0b3caeacee1f2e7ec256fd129609 (patch) | |
tree | c6bf0efbfd7117df5dcb84ad153c15ad27d9ff2e /apps | |
parent | f37612216828b4c52ac3c050c9c51d73e8d714b3 (diff) | |
download | nextcloud-server-66f86bc6860f0b3caeacee1f2e7ec256fd129609.tar.gz nextcloud-server-66f86bc6860f0b3caeacee1f2e7ec256fd129609.zip |
[stable9.1] Added integration test (#25675)
* [stable9.1] Added integration test
* A shared storage is never a home storage - fixes #25582
Diffstat (limited to 'apps')
-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 af47bf94a08..4b3f4b0795d 100644 --- a/apps/files_sharing/lib/sharedstorage.php +++ b/apps/files_sharing/lib/sharedstorage.php @@ -108,6 +108,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() { |