From af1e810607302abf2f990d21731a91a1f8ad1c5d Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 11 Jan 2016 13:58:22 +0100 Subject: [PATCH] implement isLocal for shared storage --- apps/files_sharing/lib/sharedstorage.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php index 38f79762dc..c908509501 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(); + } }