mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-11-26 18:21:50 +08:00
fix(findings): protect historical reports and verify consolidation results
This commit is contained in:
1 parent
71ec0f0efd
commit
7db7b71cdb
15 files changed
+906
-74
No files matched your search
@@ -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")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user