diff options
author | Robin Appelman <robin@icewind.nl> | 2022-12-28 17:17:45 +0100 |
---|---|---|
committer | Simon L. (Rebase PR Action) <szaimen@e.mail.de> | 2023-04-01 15:36:37 +0000 |
commit | c9e4e305239cf908479d3d448ce0d246d87092c6 (patch) | |
tree | 9d0ad4e32ffbe88bb30e9f7c195b04d810b6d1f1 /lib/private/Files/Cache/Wrapper | |
parent | 06ab4f25eb423a5a3ff146f5fcda81f60993010a (diff) | |
download | nextcloud-server-c9e4e305239cf908479d3d448ce0d246d87092c6.tar.gz nextcloud-server-c9e4e305239cf908479d3d448ce0d246d87092c6.zip |
clear encrypted flag when moving away from encrypted storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/Cache/Wrapper')
-rw-r--r-- | lib/private/Files/Cache/Wrapper/CacheWrapper.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/private/Files/Cache/Wrapper/CacheWrapper.php b/lib/private/Files/Cache/Wrapper/CacheWrapper.php index 66ae83fd144..2cd378ad23c 100644 --- a/lib/private/Files/Cache/Wrapper/CacheWrapper.php +++ b/lib/private/Files/Cache/Wrapper/CacheWrapper.php @@ -56,6 +56,15 @@ class CacheWrapper extends Cache { return $this->cache; } + protected function hasEncryptionWrapper(): bool { + $cache = $this->getCache(); + if ($cache instanceof Cache) { + return $cache->hasEncryptionWrapper(); + } else { + return false; + } + } + /** * Make it easy for wrappers to modify every returned cache entry * |