From a84b6b38477eaf08784f0485df777525425280bf Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Tue, 19 Nov 2013 11:04:41 +0100 Subject: [PATCH] Fixed ext storage free space to not be restricted by quota --- lib/fileproxy/quota.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/fileproxy/quota.php b/lib/fileproxy/quota.php index 8c6d7f5c820..8361b623ee9 100644 --- a/lib/fileproxy/quota.php +++ b/lib/fileproxy/quota.php @@ -66,6 +66,11 @@ class OC_FileProxy_Quota extends OC_FileProxy{ if (!$owner) { return -1; } + list($rootStorage, $rootInternalPath) = \OC\Files\Filesystem::resolvePath('/' . $owner . '/'); + // do not apply quota on external storage + if ($rootStorage->getId() !== $storage->getId()) { + return -1; + } $totalSpace = $this->getQuota($owner); if($totalSpace == -1) { -- 2.39.5