From 902d12555e0e4347cef82da0a6bc9283f7394cd0 Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Wed, 12 Feb 2020 15:24:35 +0100 Subject: Do not include mountpoints when calculating quota usage on WebDAV MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/dav/lib/Connector/Sabre/Directory.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/dav/lib/Connector/Sabre/Directory.php') diff --git a/apps/dav/lib/Connector/Sabre/Directory.php b/apps/dav/lib/Connector/Sabre/Directory.php index a7c319b4eee..e49a2ac3fe6 100644 --- a/apps/dav/lib/Connector/Sabre/Directory.php +++ b/apps/dav/lib/Connector/Sabre/Directory.php @@ -326,7 +326,8 @@ class Directory extends \OCA\DAV\Connector\Sabre\Node implements \Sabre\DAV\ICol return $this->quotaInfo; } try { - $storageInfo = \OC_Helper::getStorageInfo($this->info->getPath(), $this->info); + $info = $this->fileView->getFileInfo($this->path, false); + $storageInfo = \OC_Helper::getStorageInfo($this->info->getPath(), $info); if ($storageInfo['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED) { $free = \OCP\Files\FileInfo::SPACE_UNLIMITED; } else { -- cgit v1.2.3