mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-25 17:23:48 +00:00
allow repo admin to update build counter
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user