From ae92f3301fa0e17d18b6fb66692c4d7e9376edc8 Mon Sep 17 00:00:00 2001 From: korelstar Date: Fri, 17 Jul 2020 14:14:51 +0200 Subject: [PATCH] fix: file quota was not applied in all cases --- lib/private/Files/Filesystem.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/private/Files/Filesystem.php b/lib/private/Files/Filesystem.php index 075c1964347bc..47221b9d934c7 100644 --- a/lib/private/Files/Filesystem.php +++ b/lib/private/Files/Filesystem.php @@ -437,13 +437,13 @@ public static function initMountPoints($user = '') { // home mounts are handled seperate since we need to ensure this is mounted before we call the other mount providers $homeMount = $mountConfigManager->getHomeMountForUser($userObject); + self::getMountManager()->addMount($homeMount); + if ($homeMount->getStorageRootId() === -1) { $homeMount->getStorage()->mkdir(''); $homeMount->getStorage()->getScanner()->scan(''); } - self::getMountManager()->addMount($homeMount); - \OC\Files\Filesystem::getStorage($user); // Chance to mount for other storages