Skip to content

Commit

Permalink
Temporary fix for user listing via compose user field
Browse files Browse the repository at this point in the history
  • Loading branch information
tjerman committed Mar 1, 2024
1 parent 01bd594 commit 566ff41
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/system/rest/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ func (ctrl User) List(ctx context.Context, r *request.UserList) (interface{}, er
}
)

// @todo improve this either on the request parsing stage or query building stage
if len(f.UserID) == 1 && f.UserID[0] == "" {
f.UserID = nil
}

if f.Paging, err = filter.NewPaging(r.Limit, r.PageCursor); err != nil {
return nil, err
}
Expand Down

0 comments on commit 566ff41

Please sign in to comment.