implement isLocal for shared storage
This commit is contained in:
parent
df2abda814
commit
af1e810607
1 changed files with 7 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue