mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-09 00:24:08 +00:00
Backport #25173 by @lunny Fix https://github.com/go-gitea/gitea/pull/24189/files#r1224144768 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
parent
0058453fd9
commit
de1d14590d
|
@ -356,7 +356,12 @@ func registerRoutes(m *web.Route) {
|
|||
m.Get("/users", explore.Users)
|
||||
m.Get("/users/sitemap-{idx}.xml", sitemapEnabled, explore.Users)
|
||||
m.Get("/organizations", explore.Organizations)
|
||||
m.Get("/code", reqUnitAccess(unit.TypeCode, perm.AccessModeRead), explore.Code)
|
||||
m.Get("/code", func(ctx *context.Context) {
|
||||
if unit.TypeCode.UnitGlobalDisabled() {
|
||||
ctx.NotFound(unit.TypeCode.String(), nil)
|
||||
return
|
||||
}
|
||||
}, explore.Code)
|
||||
m.Get("/topics/search", explore.TopicSearch)
|
||||
}, ignExploreSignIn)
|
||||
m.Group("/issues", func() {
|
||||
|
|
Loading…
Reference in a new issue