From 04c5259df0510cb89ad14bac9ad29a93688f659e Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 16 Aug 2016 11:21:10 +0200 Subject: [PATCH 1/2] Allow to retrieve the quota itself via the provisioning api --- apps/provisioning_api/lib/Controller/UsersController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/provisioning_api/lib/Controller/UsersController.php b/apps/provisioning_api/lib/Controller/UsersController.php index 29d449e97d..8e5975468b 100644 --- a/apps/provisioning_api/lib/Controller/UsersController.php +++ b/apps/provisioning_api/lib/Controller/UsersController.php @@ -623,6 +623,7 @@ class UsersController extends OCSController { 'used' => $storage['used'], 'total' => $storage['total'], 'relative' => $storage['relative'], + 'quota' => $storage['quota'], ]; } catch (NotFoundException $ex) { $data = []; From a9f36067fdfed1c003faece5a532af3923f26610 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 16 Aug 2016 11:42:28 +0200 Subject: [PATCH 2/2] Fix constant name, copy-pasterino --- lib/public/Files/FileInfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/public/Files/FileInfo.php b/lib/public/Files/FileInfo.php index 04790d4155..b6718efba3 100644 --- a/lib/public/Files/FileInfo.php +++ b/lib/public/Files/FileInfo.php @@ -53,7 +53,7 @@ interface FileInfo { */ const SPACE_UNKNOWN = -2; /** - * @const \OCP\Files\FileInfo::SPACE_UNKNOWN Return value for unlimited space + * @const \OCP\Files\FileInfo::SPACE_UNLIMITED Return value for unlimited space * @since 8.0.0 */ const SPACE_UNLIMITED = -3;