mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-23 17:00:30 +00:00
Merge pull request #2326 from jbrockopp/master
allow repo admin to update build counter
This commit is contained in:
commit
5722ce410a
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