Merge pull request #15886 from owncloud/fix-15848-master
Adjust isLocal() on encryption wrapper
This commit is contained in:
commit
7d0eba7a41
|
@ -373,8 +373,11 @@ class Encryption extends Wrapper {
|
|||
* @return bool wrapped storage's isLocal() value
|
||||
*/
|
||||
public function isLocal() {
|
||||
if ($this->encryptionManager->isEnabled()) {
|
||||
return false;
|
||||
}
|
||||
return $this->storage->isLocal();
|
||||
}
|
||||
|
||||
/**
|
||||
* see http://php.net/manual/en/function.stat.php
|
||||
|
|
|
@ -200,4 +200,7 @@ class Encryption extends \Test\Files\Storage\Storage {
|
|||
);
|
||||
}
|
||||
|
||||
public function testIsLocal() {
|
||||
$this->assertFalse($this->instance->isLocal());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue