mirror of
https://github.com/documize/community.git
synced 2025-07-19 05:09:42 +02:00
Set user admin max results and Keycloak sync option
This commit is contained in:
parent
2c8b757ff6
commit
351b8dcc12
13 changed files with 100 additions and 31 deletions
|
@ -248,6 +248,11 @@ func (h *Handler) GetOrganizationUsers(w http.ResponseWriter, r *http.Request) {
|
|||
active = false
|
||||
}
|
||||
|
||||
limit, _ := strconv.Atoi(request.Query(r, "limit"))
|
||||
if limit == 0 {
|
||||
limit = 100
|
||||
}
|
||||
|
||||
u := []user.User{}
|
||||
|
||||
if active {
|
||||
|
@ -258,7 +263,7 @@ func (h *Handler) GetOrganizationUsers(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
} else {
|
||||
u, err = h.Store.User.GetUsersForOrganization(ctx, filter)
|
||||
u, err = h.Store.User.GetUsersForOrganization(ctx, filter, limit)
|
||||
if err != nil && err != sql.ErrNoRows {
|
||||
response.WriteServerError(w, method, err)
|
||||
h.Runtime.Log.Error(method, err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue