diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-01-11 13:58:22 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-04-14 15:50:28 +0200 |
commit | fd3f0902805fc8409d57b4a0634df7e86b4c3e53 (patch) | |
tree | a039ad89171449cca533211d718075f76a0610ec | |
parent | d45ecadba70ac27028f8222eea72e768a2bfc368 (diff) | |
download | nextcloud-server-fd3f0902805fc8409d57b4a0634df7e86b4c3e53.tar.gz nextcloud-server-fd3f0902805fc8409d57b4a0634df7e86b4c3e53.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 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(); + } } |