Merge pull request #21615 from owncloud/shared-islocal

implement isLocal for shared storage
This commit is contained in:
Thomas Müller 2016-01-13 10:34:23 +01:00
commit a5e46226ef
1 changed files with 7 additions and 0 deletions

View File

@ -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();
}
}