Enable admin to search by email (#2888)

This commit is contained in:
Ethan Koenig 2017-11-26 00:40:38 -08:00 committed by Lunny Xiao
parent 061c501d54
commit 716ac1214f
2 changed files with 16 additions and 10 deletions

View file

@ -31,8 +31,9 @@ func Users(ctx *context.Context) {
ctx.Data["PageIsAdminUsers"] = true
routers.RenderUserSearch(ctx, &models.SearchUserOptions{
Type: models.UserTypeIndividual,
PageSize: setting.UI.Admin.UserPagingNum,
Type: models.UserTypeIndividual,
PageSize: setting.UI.Admin.UserPagingNum,
SearchByEmail: true,
}, tplUsers)
}