1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-06-26 01:15:32 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
wxiaoguang
3d26c9d50f
Update routers/web/web.go
Co-authored-by: silverwind <me@silverwind.io>
2024-06-18 06:38:25 +08:00
wxiaoguang
5ab276106c
Update routers/web/web.go
Co-authored-by: silverwind <me@silverwind.io>
2024-06-18 06:21:41 +08:00

View File

@ -384,7 +384,7 @@ func registerRoutes(m *web.Route) {
return func(ctx *context.Context) {
// only check global disabled units when ignoreGlobal is false
if !ignoreGlobal && unitType.UnitGlobalDisabled() {
ctx.NotFound("Repo unit is is disabled:"+unitType.LogString(), nil)
ctx.NotFound("Repo unit is is disabled: "+unitType.LogString(), nil)
return
}
@ -487,7 +487,7 @@ func registerRoutes(m *web.Route) {
m.Get("/organizations", explore.Organizations)
m.Get("/code", func(ctx *context.Context) {
if unit.TypeCode.UnitGlobalDisabled() {
ctx.NotFound("Rep unit code is disabled", nil)
ctx.NotFound("Repo unit code is disabled", nil)
return
}
}, explore.Code)