Fixing check requiring Admin for build promote
This commit is contained in:
parent
f4313534bd
commit
93dc36cad0
1 changed files with 1 additions and 1 deletions
|
@ -185,7 +185,7 @@ func (s Server) Handler() http.Handler {
|
||||||
).Delete("/{number}", builds.HandleCancel(s.Users, s.Repos, s.Builds, s.Stages, s.Steps, s.Status, s.Scheduler, s.Webhook))
|
).Delete("/{number}", builds.HandleCancel(s.Users, s.Repos, s.Builds, s.Stages, s.Steps, s.Status, s.Scheduler, s.Webhook))
|
||||||
|
|
||||||
r.With(
|
r.With(
|
||||||
acl.CheckAdminAccess(),
|
acl.CheckWriteAccess(),
|
||||||
).Post("/{number}/promote", builds.HandlePromote(s.Repos, s.Builds, s.Triggerer))
|
).Post("/{number}/promote", builds.HandlePromote(s.Repos, s.Builds, s.Triggerer))
|
||||||
|
|
||||||
// r.With(
|
// r.With(
|
||||||
|
|
Loading…
Reference in a new issue