diff --git a/server/api/repo.go b/server/api/repo.go index e0e3b0c84..3b2ae4d27 100644 --- a/server/api/repo.go +++ b/server/api/repo.go @@ -118,6 +118,7 @@ func PatchRepo(c *gin.Context) { if in.Timeout != nil && *in.Timeout > maxTimeout && !user.Admin { c.String(http.StatusForbidden, fmt.Sprintf("Timeout is not allowed to be higher than max timeout (%dmin)", maxTimeout)) + return } if in.IsTrusted != nil && *in.IsTrusted != repo.IsTrusted && !user.Admin { log.Trace().Msgf("user '%s' wants to make repo trusted without being an instance admin ", user.Login)