Fixing check requiring Admin for build promote

This commit is contained in:
Eric Raymond 2019-06-05 15:55:02 -07:00
parent f4313534bd
commit 93dc36cad0

View file

@ -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))
r.With(
acl.CheckAdminAccess(),
acl.CheckWriteAccess(),
).Post("/{number}/promote", builds.HandlePromote(s.Repos, s.Builds, s.Triggerer))
// r.With(