Merge pull request #22900 from nextcloud/backport/21894/stable18

[stable18] fix: file quota was not applied in all cases
This commit is contained in:
Morris Jobke 2020-09-17 11:54:18 +02:00 committed by GitHub
commit be1bcacced
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -438,13 +438,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