From 149d62a648d5b852e43125834ed9b1cb6b49bdc0 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 15 Mar 2016 14:23:12 -0400 Subject: #13 fix admin can't search private repos - update glide info --- routers/admin/users.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'routers/admin/users.go') diff --git a/routers/admin/users.go b/routers/admin/users.go index 00028a2fdd..76fbcd1683 100644 --- a/routers/admin/users.go +++ b/routers/admin/users.go @@ -30,8 +30,14 @@ func Users(ctx *context.Context) { ctx.Data["PageIsAdmin"] = true ctx.Data["PageIsAdminUsers"] = true - routers.RenderUserSearch(ctx, models.USER_TYPE_INDIVIDUAL, models.CountUsers, models.Users, - setting.AdminUserPagingNum, "id ASC", USERS) + routers.RenderUserSearch(ctx, &routers.UserSearchOptions{ + Type: models.USER_TYPE_INDIVIDUAL, + Counter: models.CountUsers, + Ranger: models.Users, + PageSize: setting.AdminUserPagingNum, + OrderBy: "id ASC", + TplName: USERS, + }) } func NewUser(ctx *context.Context) { -- cgit v1.2.3