mirror of
https://github.com/go-gitea/gitea
synced 2025-07-03 09:07:19 +00:00
Admins can now do unlimited page size user search (listAllUsers & listAllOrgs) (#6143)
Non-admins will default to 10 page size
This commit is contained in:
committed by
techknowlogick
parent
477ef46251
commit
994b1be9d1
@ -55,7 +55,7 @@ func Search(ctx *context.APIContext) {
|
||||
Type: models.UserTypeIndividual,
|
||||
PageSize: com.StrTo(ctx.Query("limit")).MustInt(),
|
||||
}
|
||||
if opts.PageSize == 0 {
|
||||
if opts.PageSize <= 0 {
|
||||
opts.PageSize = 10
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user