aboutsummaryrefslogtreecommitdiffstats
path: root/routers/admin/orgs.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/admin/orgs.go')
-rw-r--r--routers/admin/orgs.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/routers/admin/orgs.go b/routers/admin/orgs.go
index 395243a5f7..28e9d79f06 100644
--- a/routers/admin/orgs.go
+++ b/routers/admin/orgs.go
@@ -21,6 +21,12 @@ func Organizations(ctx *context.Context) {
ctx.Data["PageIsAdmin"] = true
ctx.Data["PageIsAdminOrganizations"] = true
- routers.RenderUserSearch(ctx, models.USER_TYPE_ORGANIZATION, models.CountOrganizations, models.Organizations,
- setting.AdminOrgPagingNum, "id ASC", ORGS)
+ routers.RenderUserSearch(ctx, &routers.UserSearchOptions{
+ Type: models.USER_TYPE_ORGANIZATION,
+ Counter: models.CountOrganizations,
+ Ranger: models.Organizations,
+ PageSize: setting.AdminOrgPagingNum,
+ OrderBy: "id ASC",
+ TplName: ORGS,
+ })
}