Fix: Sort repos on org home page with non-admin login (#6741)

This commit is contained in:
Lunny Xiao 2019-04-25 02:20:22 +08:00 committed by zeripath
parent 821184c203
commit ff03b2f606
3 changed files with 55 additions and 3 deletions

View file

@ -505,6 +505,7 @@ func showOrgProfile(ctx *context.Context) {
ctx.ServerError("AccessibleReposEnv", err)
return
}
env.SetSort(orderBy)
if len(keyword) != 0 {
env.AddKeyword(keyword)
}