Переглянути джерело

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>
Robin Appelman 3 роки тому
батько
коміт
8501cf9b5c
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      lib/private/Encryption/EncryptionWrapper.php

+ 1 - 1
lib/private/Encryption/EncryptionWrapper.php

@@ -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;