From cd9e802b9f36c572d6ca9246c47f6795efccae22 Mon Sep 17 00:00:00 2001
From: Marius Cramer <m.cramer@pixcept.de>
Date: Wed, 05 Mar 2014 12:25:54 -0500
Subject: [PATCH]  Merge branch 'remote_quota' into 'master'

---
 interface/lib/classes/remote.d/sites.inc.php |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/interface/lib/classes/remote.d/sites.inc.php b/interface/lib/classes/remote.d/sites.inc.php
index 5e5ac59..94ec2b1 100644
--- a/interface/lib/classes/remote.d/sites.inc.php
+++ b/interface/lib/classes/remote.d/sites.inc.php
@@ -872,6 +872,21 @@
 		return $all;
 	}
 
+	//** quota functions -----------------------------------------------------------------------------------
+	public function quota_get_by_user($session_id, $client_id)
+	{
+		global $app;
+		$app->uses('quota_lib');
+	
+		if(!$this->checkPerm($session_id, 'quota_get_by_user')) {
+			$this->server->fault('permission_denied', 'You do not have the permissions to access this function.');
+			return false;
+		}
+	
+		return $app->quota_lib->get_quota_data($client_id, false);
+	}
+	
+	
 }
 
 ?>

--
Gitblit v1.9.1