fix(findings): protect historical reports and verify consolidation results

This commit is contained in:
ji ruo committed 2026-10-09 12:23:11 +08:00
1 parent 71ec0f0efd
commit 7db7b71cdb
15 files changed
+906 -74

No files matched your search

+5
View File
@@ -116,6 +116,11 @@ func objectProperty(parent map[string]any, key string) map[string]any {
}
func (s *Server) agentFindingTrafficAccess(ctx context.Context, id int64, write bool) error {
if write {
if err := s.checkCaseReviewScope(ctx, "bind_finding_traffic", findingCaseRequest{}); err != nil {
return err
}
}
if id <= 0 {
return errors.New("finding_id 必须为独立漏洞记录 ID;不是探索节点 ID")
}