Skip to content

Commit 1d53aef

Browse files
committed
fix(encryption): Use IAppConfig for encryptHomeStorage read
Replace deprecated IConfig::getAppValue() with the typed IAppConfig::getValueString() for the encryptHomeStorage check, consistent with the rest of this PR's config migration. Signed-off-by: Stephen Cuppett <steve@cuppett.com>
1 parent 8550ab4 commit 1d53aef

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/private/Encryption/EncryptionWrapper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use OCP\Files\Mount\IMountPoint;
1818
use OCP\Files\Storage\IDisableEncryptionStorage;
1919
use OCP\Files\Storage\IStorage;
20+
use OCP\IAppConfig;
2021
use OCP\IConfig;
2122
use OCP\IGroupManager;
2223
use OCP\IUserManager;
@@ -72,7 +73,7 @@ public function wrapStorage(string $mountPoint, IStorage $storage, IMountPoint $
7273

7374
// Skip encryption for home mounts if encryptHomeStorage is disabled
7475
if ($mount instanceof HomeMountPoint
75-
&& Server::get(IConfig::class)->getAppValue('encryption', 'encryptHomeStorage', '1') !== '1') {
76+
&& Server::get(IAppConfig::class)->getValueString('encryption', 'encryptHomeStorage', '1') !== '1') {
7677
return $storage;
7778
}
7879
}

0 commit comments

Comments
 (0)