Skip to content

Commit f308f44

Browse files
juliusknorrrullzer
authored andcommitted
Do not include mountpoints when calculating quota usage on WebDAV
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent f85d7fe commit f308f44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/dav/lib/Connector/Sabre/Directory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,8 @@ public function getQuotaInfo() {
330330
return $this->quotaInfo;
331331
}
332332
try {
333-
$storageInfo = \OC_Helper::getStorageInfo($this->info->getPath(), $this->info);
333+
$info = $this->fileView->getFileInfo($this->path, false);
334+
$storageInfo = \OC_Helper::getStorageInfo($this->info->getPath(), $info);
334335
if ($storageInfo['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED) {
335336
$free = \OCP\Files\FileInfo::SPACE_UNLIMITED;
336337
} else {

0 commit comments

Comments
 (0)