Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor repo unit "disabled" check #31389

Merged
merged 6 commits into from
Jun 18, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update routers/web/web.go
Co-authored-by: silverwind <[email protected]>
  • Loading branch information
wxiaoguang and silverwind committed Jun 17, 2024
commit 5ab276106c2f749cfd12be316a5a38724947c0c8
2 changes: 1 addition & 1 deletion routers/web/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading