修复HTTP验证测试并按实际签发配置复核项目权限

This commit is contained in:
xuans committed 2026-10-04 02:49:49 +08:00
1 parent 16224fa1f5
commit 201a272562
10 files changed
+221 -2

No files matched your search

+5 -1
View File
@@ -778,7 +778,11 @@ func (s *Server) authorizeSynchronousCertificateIssue(c *gin.Context) bool {
s.writeProjectResourceError(c, err)
return false
}
return s.authorizeIssueChallenge(c, resource)
if !s.authorizeIssueChallenge(c, resource) {
return false
}
c.Request = c.Request.WithContext(s.withCertificateIssueAuthorization(c.Request.Context(), c.GetString(authenticatedActorKey), resource.ID, resource.ResourceScope.Normalize().ProjectID, false))
return true
}
func (s *Server) issueDomain(c *gin.Context) {