From: korelstar Date: Fri, 17 Jul 2020 12:14:51 +0000 (+0200) Subject: fix: file quota was not applied in all cases X-Git-Tag: v20.0.0beta2~19^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F21894%2Fhead;p=nextcloud-server.git fix: file quota was not applied in all cases --- diff --git a/lib/private/Files/Filesystem.php b/lib/private/Files/Filesystem.php index 9d534815cdc..b85554ae333 100644 --- a/lib/private/Files/Filesystem.php +++ b/lib/private/Files/Filesystem.php @@ -437,13 +437,13 @@ class Filesystem { // 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