mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #21615 from owncloud/shared-islocal
implement isLocal for shared storage
This commit is contained in:
commit
a5e46226ef
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