Skip to content

Commit 8501cf9

Browse files
icewind1991juliusknorr
authored andcommitted
dont apply encryption wrapper for root mount
the `shouldEncrypt` already disables encryption for anything thats not in the users data folder, however the encryption wrapper being applied anyway on the root folder breaks groupfolders Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 04a6512 commit 8501cf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Encryption/EncryptionWrapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function wrapStorage($mountPoint, Storage $storage, IMountPoint $mount) {
8181
'mount' => $mount
8282
];
8383

84-
if (!$storage->instanceOfStorage(Storage\IDisableEncryptionStorage::class)) {
84+
if (!$storage->instanceOfStorage(Storage\IDisableEncryptionStorage::class) && $mountPoint !== '/') {
8585
$user = \OC::$server->getUserSession()->getUser();
8686
$mountManager = Filesystem::getMountManager();
8787
$uid = $user ? $user->getUID() : null;

0 commit comments

Comments
 (0)