@@ -55,9 +55,6 @@ func Search(ctx *context.APIContext) { | |||
Type: models.UserTypeIndividual, | |||
PageSize: com.StrTo(ctx.Query("limit")).MustInt(), | |||
} | |||
if opts.PageSize <= 0 { | |||
opts.PageSize = 10 | |||
} | |||
users, _, err := models.SearchUsers(opts) | |||
if err != nil { |