Skip to content

Commit edf08f5

Browse files
authored
Merge pull request #901 from nextcloud/backport-890-quota-unlimited-via-api-9
[stable9] Allow to retrieve the quota itself via the provisioning api
2 parents 1158c47 + 8aa9147 commit edf08f5

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

apps/provisioning_api/lib/users.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,7 @@ protected function fillStorageInfo($userId) {
575575
'used' => $storage['used'],
576576
'total' => $storage['total'],
577577
'relative' => $storage['relative'],
578+
'quota' => $storage['quota'],
578579
];
579580
} catch (NotFoundException $ex) {
580581
$data = [];

lib/public/files/fileinfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ interface FileInfo {
5353
*/
5454
const SPACE_UNKNOWN = -2;
5555
/**
56-
* @const \OCP\Files\FileInfo::SPACE_UNKNOWN Return value for unlimited space
56+
* @const \OCP\Files\FileInfo::SPACE_UNLIMITED Return value for unlimited space
5757
* @since 8.0.0
5858
*/
5959
const SPACE_UNLIMITED = -3;

0 commit comments

Comments
 (0)