Merge pull request #2326 from jbrockopp/master

allow repo admin to update build counter
This commit is contained in:
Brad Rydzewski 2018-02-01 13:50:06 -08:00 committed by GitHub
commit 5722ce410a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}