Skip to content

Commit

Permalink
Commit 6 - fix for quota for LW (#3054)
Browse files Browse the repository at this point in the history
* [cbox-commit-6] Use bare minimum quota for lightweight accounts until this is fixed in web

Co-authored-by: Ishank Arora <ishank011@gmail.com>
  • Loading branch information
labkode and ishank011 authored Jul 11, 2022
1 parent 67ef494 commit b16bbf9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog/unreleased/fix-lightweight.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfix: Fix quota for LW accounts

LW accounts do not have quota assigned.

https://github.com/cs3org/reva/pull/3055
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b16bbf9

Please sign in to comment.