Improve isLocal performance for SharedStorage
This commit is contained in:
parent
a9c8eee15c
commit
35c32ca721
|
@ -737,9 +737,7 @@ class Shared extends \OC\Files\Storage\Common implements ISharedStorage {
|
|||
|
||||
public function isLocal() {
|
||||
$this->init();
|
||||
$ownerPath = $this->ownerView->getPath($this->share['item_source']);
|
||||
list($targetStorage) = $this->ownerView->resolvePath($ownerPath);
|
||||
return $targetStorage->isLocal();
|
||||
return $this->sourceStorage->isLocal();
|
||||
}
|
||||
|
||||
public function getSourceStorage() {
|
||||
|
|
Loading…
Reference in New Issue