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
5ab276106c
commit
3d26c9d50f
@ -384,7 +384,7 @@ func registerRoutes(m *web.Route) {
|
|||||||
return func(ctx *context.Context) {
|
return func(ctx *context.Context) {
|
||||||
// only check global disabled units when ignoreGlobal is false
|
// only check global disabled units when ignoreGlobal is false
|
||||||
if !ignoreGlobal && unitType.UnitGlobalDisabled() {
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user