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>
This commit is contained in:
Robin Appelman 2020-09-17 18:14:48 +02:00 committed by Julius Härtl
parent 04a65121b7
commit 8501cf9b5c
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class EncryptionWrapper {
'mount' => $mount
];
if (!$storage->instanceOfStorage(Storage\IDisableEncryptionStorage::class)) {
if (!$storage->instanceOfStorage(Storage\IDisableEncryptionStorage::class) && $mountPoint !== '/') {
$user = \OC::$server->getUserSession()->getUser();
$mountManager = Filesystem::getMountManager();
$uid = $user ? $user->getUID() : null;