mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-02-17 03:45:13 +00:00
allow repo admin to update build counter
This commit is contained in:
parent
75150d4a42
commit
a844ed53e9
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ func PatchRepo(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
if (in.IsTrusted != nil || in.Timeout != nil || in.BuildCounter != nil) && !user.Admin {
|
||||
if (in.IsTrusted != nil || in.Timeout != nil) && !user.Admin {
|
||||
c.String(403, "Insufficient privileges")
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue