From 93dc36cad0756eb283b0c527456f8d270058c4f5 Mon Sep 17 00:00:00 2001 From: Eric Raymond Date: Wed, 5 Jun 2019 15:55:02 -0700 Subject: [PATCH] Fixing check requiring Admin for build promote --- handler/api/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/api/api.go b/handler/api/api.go index 45b11bf4..5016dc50 100644 --- a/handler/api/api.go +++ b/handler/api/api.go @@ -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(