mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-04 16:09:33 +00:00
update repo patch logic
This commit is contained in:
parent
8348c858ba
commit
f2d4cf7be5
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ func PatchRepo(c *gin.Context) {
|
||||||
return
|
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")
|
c.String(403, "Insufficient privileges")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue