This commit is contained in:
Thomas Müller 2015-04-27 14:26:05 +02:00
parent 93c25a1f4a
commit 936d564058
2 changed files with 7 additions and 1 deletions

View File

@ -363,7 +363,10 @@ class Encryption extends Wrapper {
* @return bool wrapped storage's isLocal() value
*/
public function isLocal() {
return false;
if ($this->encryptionManager->isEnabled()) {
return false;
}
return $this->storage->isLocal();
}
/**

View File

@ -200,4 +200,7 @@ class Encryption extends \Test\Files\Storage\Storage {
);
}
public function testIsLocal() {
$this->assertFalse($this->instance->isLocal());
}
}