]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: file quota was not applied in all cases 21894/head
authorkorelstar <korelstar@users.noreply.github.com>
Fri, 17 Jul 2020 12:14:51 +0000 (14:14 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Thu, 20 Aug 2020 14:11:50 +0000 (16:11 +0200)
lib/private/Files/Filesystem.php

index 9d534815cdc08f2b893f03aa5dc70fba7ab6cdfe..b85554ae333a311ac3d1cbf093b05545895312ad 100644 (file)
@@ -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