update repo patch logic

This commit is contained in:
Brad Rydzewski 2017-04-11 23:51:33 +02:00
parent 8348c858ba
commit f2d4cf7be5

View file

@ -110,7 +110,7 @@ func PatchRepo(c *gin.Context) {
return
}
if (in.IsTrusted != nil || in.Timeout != nil || in.IsGated != nil) && !user.Admin {
if (in.IsTrusted != nil || in.Timeout != nil) && !user.Admin {
c.String(403, "Insufficient privileges")
return
}