diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-01-11 13:58:22 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-01-11 13:58:22 +0100 |
commit | af1e810607302abf2f990d21731a91a1f8ad1c5d (patch) | |
tree | 9f51e2faedc7fabca9adc2e0e59d7d84cc2b0641 | |
parent | df2abda814e8909136a27fdac136dc15e62fe429 (diff) | |
download | nextcloud-server-af1e810607302abf2f990d21731a91a1f8ad1c5d.tar.gz nextcloud-server-af1e810607302abf2f990d21731a91a1f8ad1c5d.zip |
implement isLocal for shared storage
-rw-r--r-- | apps/files_sharing/lib/sharedstorage.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php index 38f79762dc6..c9085095016 100644 --- a/apps/files_sharing/lib/sharedstorage.php +++ b/apps/files_sharing/lib/sharedstorage.php @@ -699,4 +699,11 @@ class Shared extends \OC\Files\Storage\Common implements ISharedStorage { public function setAvailability($available) { // shares do not participate in availability logic } + + public function isLocal() { + $this->init(); + $ownerPath = $this->ownerView->getPath($this->share['item_source']); + list($targetStorage) = $this->ownerView->resolvePath($ownerPath); + return $targetStorage->isLocal(); + } } |