diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-11-21 16:21:25 +0100 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2022-11-21 16:24:22 +0100 |
commit | 0b09531dc66f6a82fd1db997ceff85b1407f01fa (patch) | |
tree | 6f38b5d359ba31fd988697ab8cea3a20e0de54c1 /apps/provisioning_api | |
parent | d0c72cc11a14f4c1d9ca9db82ed4f2b19346bfb6 (diff) | |
download | nextcloud-server-0b09531dc66f6a82fd1db997ceff85b1407f01fa.tar.gz nextcloud-server-0b09531dc66f6a82fd1db997ceff85b1407f01fa.zip |
Don't use quota cache through user management
When querying the free space through user management APIs, don't use the
cached quota value. The latter is only there to accelerate PROPFINDs.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps/provisioning_api')
-rw-r--r-- | apps/provisioning_api/lib/Controller/AUserData.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/provisioning_api/lib/Controller/AUserData.php b/apps/provisioning_api/lib/Controller/AUserData.php index f2fbea7b04f..0fc2bb6f0d3 100644 --- a/apps/provisioning_api/lib/Controller/AUserData.php +++ b/apps/provisioning_api/lib/Controller/AUserData.php @@ -245,7 +245,7 @@ abstract class AUserData extends OCSController { try { \OC_Util::tearDownFS(); \OC_Util::setupFS($userId); - $storage = OC_Helper::getStorageInfo('/'); + $storage = OC_Helper::getStorageInfo('/', null, true, false); $data = [ 'free' => $storage['free'], 'used' => $storage['used'], |