aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/web.go
diff options
context:
space:
mode:
authorPedro Nishiyama <nishiyama.v3@gmail.com>2024-11-28 04:18:23 -0300
committerGitHub <noreply@github.com>2024-11-28 07:18:23 +0000
commit1b296ed1a422b8f29ea0c0e887f6470b8895116c (patch)
tree1bdd71b45537933b34fd97d0465e1039e6f8f01f /routers/web/web.go
parent16a7d343d78807e39df124756e5d43a69a2203a3 (diff)
downloadgitea-1b296ed1a422b8f29ea0c0e887f6470b8895116c.tar.gz
gitea-1b296ed1a422b8f29ea0c0e887f6470b8895116c.zip
Allow users with write permission to run actions (#32644)
--- I have a use case where I need a team to be able to run actions without admin access.
Diffstat (limited to 'routers/web/web.go')
-rw-r--r--routers/web/web.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/web.go b/routers/web/web.go
index a2c14993ac..5ed046a983 100644
--- a/routers/web/web.go
+++ b/routers/web/web.go
@@ -1406,7 +1406,7 @@ func registerRoutes(m *web.Router) {
m.Get("", actions.List)
m.Post("/disable", reqRepoAdmin, actions.DisableWorkflowFile)
m.Post("/enable", reqRepoAdmin, actions.EnableWorkflowFile)
- m.Post("/run", reqRepoAdmin, actions.Run)
+ m.Post("/run", reqRepoActionsWriter, actions.Run)
m.Group("/runs/{run}", func() {
m.Combo("").