From b16bbf9b90b984f19a7f449ca2089ed7d1ecf0dc Mon Sep 17 00:00:00 2001 From: Hugo Labrador Date: Mon, 11 Jul 2022 14:41:04 +0200 Subject: [PATCH] Commit 6 - fix for quota for LW (#3054) * [cbox-commit-6] Use bare minimum quota for lightweight accounts until this is fixed in web Co-authored-by: Ishank Arora --- changelog/unreleased/fix-lightweight.md | 5 +++++ .../http/services/owncloud/ocs/handlers/cloud/users/users.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 changelog/unreleased/fix-lightweight.md diff --git a/changelog/unreleased/fix-lightweight.md b/changelog/unreleased/fix-lightweight.md new file mode 100644 index 0000000000..b2f04cf0e8 --- /dev/null +++ b/changelog/unreleased/fix-lightweight.md @@ -0,0 +1,5 @@ +Bugfix: Fix quota for LW accounts + +LW accounts do not have quota assigned. + +https://github.com/cs3org/reva/pull/3055 diff --git a/internal/http/services/owncloud/ocs/handlers/cloud/users/users.go b/internal/http/services/owncloud/ocs/handlers/cloud/users/users.go index 5980a7f826..2f6d7a84a7 100644 --- a/internal/http/services/owncloud/ocs/handlers/cloud/users/users.go +++ b/internal/http/services/owncloud/ocs/handlers/cloud/users/users.go @@ -114,7 +114,7 @@ func (h *Handler) GetUsers(w http.ResponseWriter, r *http.Request) { ocdav.HandleErrorStatus(sublog, w, getHomeRes.Status) return } - var total, used uint64 + var total, used uint64 = 2, 1 var relative float32 // lightweight and federated accounts don't have access to their storage space if u.Id.Type != userpb.UserType_USER_TYPE_LIGHTWEIGHT && u.Id.Type != userpb.UserType_USER_TYPE_FEDERATED {