Allow to retrieve the quota itself via the provisioning api

This commit is contained in:
Joas Schilling 2016-08-17 12:33:58 +02:00
parent 1158c473dc
commit 8aa91478b7
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
2 changed files with 2 additions and 1 deletions

View File

@ -575,6 +575,7 @@ class Users {
'used' => $storage['used'], 'used' => $storage['used'],
'total' => $storage['total'], 'total' => $storage['total'],
'relative' => $storage['relative'], 'relative' => $storage['relative'],
'quota' => $storage['quota'],
]; ];
} catch (NotFoundException $ex) { } catch (NotFoundException $ex) {
$data = []; $data = [];

View File

@ -53,7 +53,7 @@ interface FileInfo {
*/ */
const SPACE_UNKNOWN = -2; 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 * @since 8.0.0
*/ */
const SPACE_UNLIMITED = -3; const SPACE_UNLIMITED = -3;