mirror of
https://github.com/Ed1s0nZ/CyberStrikeAI.git
synced 2026-07-16 00:47:29 +02:00
Add files via upload
This commit is contained in:
@@ -101,6 +101,7 @@ func (h *VulnerabilityHandler) CreateVulnerability(c *gin.Context) {
|
||||
_ = h.db.SetResourceOwner("vulnerability", created.ID, session.UserID)
|
||||
_ = h.db.AssignResourceToUser(session.UserID, "vulnerability", created.ID)
|
||||
}
|
||||
h.db.NotifyVulnerabilityCreated(created)
|
||||
|
||||
if h.audit != nil {
|
||||
h.audit.RecordOK(c, "vulnerability", "create", "创建漏洞记录", "vulnerability", created.ID, map[string]interface{}{
|
||||
|
||||
Reference in New Issue
Block a user