From: Vincent Petry Date: Tue, 19 Nov 2013 10:04:41 +0000 (+0100) Subject: Fixed ext storage free space to not be restricted by quota X-Git-Tag: v5.0.14~19^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a84b6b38477eaf08784f0485df777525425280bf;p=nextcloud-server.git Fixed ext storage free space to not be restricted by quota --- 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) {