fix /api/org/users so that query and limit querystrings works

This commit is contained in:
Marcus Efraimsson 2018-10-09 14:52:08 +02:00 committed by Johannes Schill
parent a94c1eaf4b
commit c0b7ca3902

View File

@ -45,7 +45,7 @@ func addOrgUserHelper(cmd m.AddOrgUserCommand) Response {
// GET /api/org/users
func GetOrgUsersForCurrentOrg(c *m.ReqContext) Response {
return getOrgUsersHelper(c.OrgId, c.Params("query"), c.ParamsInt("limit"))
return getOrgUsersHelper(c.OrgId, c.Query("query"), c.QueryInt("limit"))
}
// GET /api/orgs/:orgId/users