From fded15332825ce4d7fb1abd597ef173d46c19352 Mon Sep 17 00:00:00 2001 From: Laszlo Fogas Date: Wed, 19 Jun 2019 09:01:17 +0200 Subject: [PATCH] Gated builds is disabled as I don't understand the feature --- server/hook.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/server/hook.go b/server/hook.go index 8bbd5b9e3..6ffd51c05 100644 --- a/server/hook.go +++ b/server/hook.go @@ -159,12 +159,9 @@ func PostHook(c *gin.Context) { // } // } - // if repo.IsGated { - // allowed, _ := Config.Services.Senders.SenderAllowed(user, repo, build, conf) - // if !allowed { - // build.Status = model.StatusBlocked - // } - // } + if repo.IsGated { // This feature is not clear to me. Reenabling once better understood + build.Status = model.StatusBlocked + } // update some build fields build.RepoID = repo.ID