1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-03 09:07:19 +00:00

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

This commit is contained in:
Lunny Xiao
2019-04-25 10:47:44 +08:00
committed by techknowlogick
parent 26c1550643
commit aecd9231ba
3 changed files with 55 additions and 3 deletions

View File

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