Skip to content

Commit 8211e01

Browse files
jolheiserzeripath
authored andcommitted
Add unit types to repo action URL to correctly show 404 when archived (#6247)
Signed-off-by: jolheiser <[email protected]>
1 parent f7ffb19 commit 8211e01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/routes/routes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ func RegisterRoutes(m *macaron.Macaron) {
577577
})
578578
}, reqSignIn, context.RepoAssignment(), reqRepoAdmin, context.UnitTypes(), context.RepoRef())
579579

580-
m.Get("/:username/:reponame/action/:action", reqSignIn, context.RepoAssignment(), context.RepoMustNotBeArchived(), repo.Action)
580+
m.Get("/:username/:reponame/action/:action", reqSignIn, context.RepoAssignment(), context.UnitTypes(), context.RepoMustNotBeArchived(), repo.Action)
581581

582582
m.Group("/:username/:reponame", func() {
583583
m.Group("/issues", func() {

0 commit comments

Comments
 (0)