]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fixed ext storage free space to not be restricted by quota
authorVincent Petry <pvince81@owncloud.com>
Tue, 19 Nov 2013 10:04:41 +0000 (11:04 +0100)
committerVincent Petry <pvince81@owncloud.com>
Tue, 19 Nov 2013 10:05:04 +0000 (11:05 +0100)
lib/fileproxy/quota.php

index 8c6d7f5c8202d75d42b6b97275d54c3e31cfdd37..8361b623ee923f3988371fd02bd91f306e487a16 100644 (file)
@@ -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) {