diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-13 10:34:23 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-13 10:34:23 +0100 |
commit | a5e46226eff081ca869ac2a0a7b80086c863a384 (patch) | |
tree | 0abf95dda0d257c0f6ef0df16549a6703ed3349f /apps | |
parent | 1e0ea46e9edefa3caaf9380ba877f1547183ca4d (diff) | |
parent | af1e810607302abf2f990d21731a91a1f8ad1c5d (diff) | |
download | nextcloud-server-a5e46226eff081ca869ac2a0a7b80086c863a384.tar.gz nextcloud-server-a5e46226eff081ca869ac2a0a7b80086c863a384.zip |
Merge pull request #21615 from owncloud/shared-islocal
implement isLocal for shared storage
Diffstat (limited to 'apps')
-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 b9c62396bf6..697856e1de5 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(); + } } |