summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorJohn Olheiser <42128690+jolheiser@users.noreply.github.com>2019-03-09 05:00:38 -0600
committerzeripath <art27@cantab.net>2019-03-09 11:00:38 +0000
commit8211e01d9e6f283077c5692b62d7ea81e0a60f9e (patch)
treec93e0045f7d69cc6d1921100b8448461849fb3cf /routers
parentf7ffb190c66319e9f2f0aaacaccd0bf40614eb12 (diff)
downloadgitea-8211e01d9e6f283077c5692b62d7ea81e0a60f9e.tar.gz
gitea-8211e01d9e6f283077c5692b62d7ea81e0a60f9e.zip
Add unit types to repo action URL to correctly show 404 when archived (#6247)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Diffstat (limited to 'routers')
-rw-r--r--routers/routes/routes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/routes/routes.go b/routers/routes/routes.go
index 01da321e49..f2fd96c3d3 100644
--- a/routers/routes/routes.go
+++ b/routers/routes/routes.go
@@ -577,7 +577,7 @@ func RegisterRoutes(m *macaron.Macaron) {
})
}, reqSignIn, context.RepoAssignment(), reqRepoAdmin, context.UnitTypes(), context.RepoRef())
- m.Get("/:username/:reponame/action/:action", reqSignIn, context.RepoAssignment(), context.RepoMustNotBeArchived(), repo.Action)
+ m.Get("/:username/:reponame/action/:action", reqSignIn, context.RepoAssignment(), context.UnitTypes(), context.RepoMustNotBeArchived(), repo.Action)
m.Group("/:username/:reponame", func() {
m.Group("/issues", func() {