mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-04 08:17:24 -05:00
Compare commits
No commits in common. "3d26c9d50f15208696f8a83d379df60a62c1a1e5" and "4f38c753857d8d1d72681c7ddad1dc38fed05569" have entirely different histories.
3d26c9d50f
...
4f38c75385
@ -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("Repo unit code is disabled", nil)
|
||||
ctx.NotFound("Rep unit code is disabled", nil)
|
||||
return
|
||||
}
|
||||
}, explore.Code)
|
||||
|
Loading…
Reference in New Issue
Block a user