mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-23 02:11:01 +00:00
allow repo admin to kill build
This commit is contained in:
parent
75150d4a42
commit
af08c76b6a
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ func Load(mux *httptreemux.ContextMux, middleware ...gin.HandlerFunc) http.Handl
|
|||
repo.POST("/move", session.MustRepoAdmin(), server.MoveRepo)
|
||||
|
||||
repo.POST("/builds/:number", session.MustPush, server.PostBuild)
|
||||
repo.DELETE("/builds/:number", session.MustAdmin(), server.ZombieKill)
|
||||
repo.DELETE("/builds/:number", session.MustRepoAdmin(), server.ZombieKill)
|
||||
repo.POST("/builds/:number/approve", session.MustPush, server.PostApproval)
|
||||
repo.POST("/builds/:number/decline", session.MustPush, server.PostDecline)
|
||||
repo.DELETE("/builds/:number/:job", session.MustPush, server.DeleteBuild)
|
||||
|
|
Loading…
Reference in a new issue