From c0b7ca39022a5d5d6080afbedce8d8c9760a4187 Mon Sep 17 00:00:00 2001 From: Marcus Efraimsson Date: Tue, 9 Oct 2018 14:52:08 +0200 Subject: [PATCH] fix /api/org/users so that query and limit querystrings works --- pkg/api/org_users.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/org_users.go b/pkg/api/org_users.go index 4e2ed36431e..13af654e4c7 100644 --- a/pkg/api/org_users.go +++ b/pkg/api/org_users.go @@ -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