mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-09 00:58:30 +02:00
Backport #18045 The current code unfortunately requires that `action` be a reserved repository name as it prevents posts to change the settings for action repositories. However, we can simply change action handler to work on POST /{username} instead. Fix #18037 Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
1 parent
76e1c130fb
commit
a818a48c76
3 files changed
+5
-7
No files matched your search
+1
-3
@@ -461,9 +461,7 @@ func RegisterRoutes(m *web.Route) {
|
||||
m.Get("/attachments/{uuid}", repo.GetAttachment)
|
||||
}, ignSignIn)
|
||||
|
||||
m.Group("/{username}", func() {
|
||||
m.Post("/action/{action}", user.Action)
|
||||
}, reqSignIn)
|
||||
m.Post("/{username}", reqSignIn, user.Action)
|
||||
|
||||
if !setting.IsProd() {
|
||||
m.Get("/template/*", dev.TemplatePreview)
|
||||
|
||||
Reference in new issue
Block a user