mirror of
https://github.com/go-gitea/gitea.git
synced 2024-10-01 03:36:12 -04:00
Update routers/web/web.go
Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
parent
4f38c75385
commit
5ab276106c
@ -487,7 +487,7 @@ func registerRoutes(m *web.Route) {
|
|||||||
m.Get("/organizations", explore.Organizations)
|
m.Get("/organizations", explore.Organizations)
|
||||||
m.Get("/code", func(ctx *context.Context) {
|
m.Get("/code", func(ctx *context.Context) {
|
||||||
if unit.TypeCode.UnitGlobalDisabled() {
|
if unit.TypeCode.UnitGlobalDisabled() {
|
||||||
ctx.NotFound("Rep unit code is disabled", nil)
|
ctx.NotFound("Repo unit code is disabled", nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}, explore.Code)
|
}, explore.Code)
|
||||||
|
Loading…
Reference in New Issue
Block a user