[Pkg-owncloud-commits] [owncloud] 22/83: Fixed ext storage free space to not be restricted by quota

David Prévot taffit at moszumanska.debian.org
Wed Dec 18 13:05:26 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch 5.0
in repository owncloud.

commit a84b6b38477eaf08784f0485df777525425280bf
Author: Vincent Petry <pvince81 at owncloud.com>
Date:   Tue Nov 19 11:04:41 2013 +0100

    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 8c6d7f5..8361b62 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) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list