summaryrefslogtreecommitdiffstats
path: root/lib/private/util.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2016-02-09 17:16:43 +0100
committerArthur Schiwon <blizzz@owncloud.com>2016-02-09 17:16:43 +0100
commit3a796d1e1533febc63a2719816815b47f2065e82 (patch)
tree3fdf9dab718f2a186341d875763c6f8fafd5b7db /lib/private/util.php
parent4659bf9b4a880376e690d3ca52e855a861c143f1 (diff)
downloadnextcloud-server-3a796d1e1533febc63a2719816815b47f2065e82.tar.gz
nextcloud-server-3a796d1e1533febc63a2719816815b47f2065e82.zip
Consolidate getQuota and setQuota methods in User instance
Diffstat (limited to 'lib/private/util.php')
-rw-r--r--lib/private/util.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/private/util.php b/lib/private/util.php
index 28541eff773..6e15d742bed 100644
--- a/lib/private/util.php
+++ b/lib/private/util.php
@@ -285,11 +285,7 @@ class OC_Util {
* @return int Quota bytes
*/
public static function getUserQuota($user) {
- $config = \OC::$server->getConfig();
- $userQuota = $config->getUserValue($user, 'files', 'quota', 'default');
- if ($userQuota === 'default') {
- $userQuota = $config->getAppValue('files', 'default_quota', 'none');
- }
+ $userQuota = \OC::$server->getUserManager()->get($user)->getQuota();
if($userQuota === 'none') {
return \OCP\Files\FileInfo::SPACE_UNLIMITED;
}else{