summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/files/storage/wrapper/encryption.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/files/storage/wrapper/encryption.php b/lib/private/files/storage/wrapper/encryption.php
index 41a7f9e9242..d73ff6638b2 100644
--- a/lib/private/files/storage/wrapper/encryption.php
+++ b/lib/private/files/storage/wrapper/encryption.php
@@ -364,7 +364,10 @@ class Encryption extends Wrapper {
* @return string
*/
public function getLocalFile($path) {
- return $this->getCachedFile($path);
+ if ($this->encryptionManager->isEnabled()) {
+ return $this->getCachedFile($path);
+ }
+ return $this->storage->getLocalFile($path);
}
/**