diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-02-12 15:24:35 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-04-24 18:15:43 +0200 |
commit | 902d12555e0e4347cef82da0a6bc9283f7394cd0 (patch) | |
tree | 102fc8aa1f48d226c92f3db2dc75dd21b2d58c5f /apps/dav/lib/Connector/Sabre | |
parent | 797fa188c224132d522710ecda4aa4feb85c3739 (diff) | |
download | nextcloud-server-902d12555e0e4347cef82da0a6bc9283f7394cd0.tar.gz nextcloud-server-902d12555e0e4347cef82da0a6bc9283f7394cd0.zip |
Do not include mountpoints when calculating quota usage on WebDAV
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/dav/lib/Connector/Sabre')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/Directory.php | 3 |
1 files changed, 2 insertions, 1 deletions
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 { |