Add files via upload

This commit is contained in:
公明
2026-07-13 19:08:57 +08:00
committed by GitHub
parent 8ea0ee4f1b
commit e5a4703e91
2 changed files with 195 additions and 0 deletions
+3
View File
@@ -151,6 +151,9 @@ func permissionForRequest(method, fullPath string) string {
return crudPermission(method, "knowledge")
case strings.HasPrefix(path, "/vulnerabilities"):
return crudPermission(method, "vulnerability")
case strings.HasPrefix(path, "/vulnerability-alerts"):
// This endpoint only changes the authenticated user's own preference.
return "vulnerability:read"
case strings.HasPrefix(path, "/projects"):
return crudPermission(method, "project")
case strings.HasPrefix(path, "/webshell"):