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

(cherry picked from commit c0b7ca3902)
This commit is contained in:
Marcus Efraimsson
2018-10-15 13:49:19 +02:00
parent c613a317a1
commit 183bb1785b
+1 -1
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