mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-08-02 01:10:42 +00:00
Do not exclude repo owner from gated rule (#641)
This commit is contained in:
parent
30c3e139d7
commit
a2429eb570
@ -213,7 +213,7 @@ func PostHook(c *gin.Context) {
|
|||||||
build.Status = model.StatusPending
|
build.Status = model.StatusPending
|
||||||
|
|
||||||
// TODO(336) extend gated feature with an allow/block List
|
// TODO(336) extend gated feature with an allow/block List
|
||||||
if repo.IsGated && build.Sender != repoUser.Login {
|
if repo.IsGated {
|
||||||
build.Status = model.StatusBlocked
|
build.Status = model.StatusBlocked
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user