From fd3f0902805fc8409d57b4a0634df7e86b4c3e53 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 11 Jan 2016 13:58:22 +0100 Subject: 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 53b297da5ae..1970e297252 100644 --- a/apps/files_sharing/lib/sharedstorage.php +++ b/apps/files_sharing/lib/sharedstorage.php @@ -703,4 +703,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(); + } } -- cgit v1.2.3