NUWCDIVNPT / stig-manager

An API and client for managing STIG assessments
Other
104 stars 28 forks source link

fix: put asset/stigs ignores assets not enabled in collection #1290

Closed csmig closed 1 month ago

csmig commented 1 month ago

This PR adds code to the handler for PUT /collections/{collectionId}/grants/{userId}/access that silently ignores items in the request body whose assetId is not associated with collectionId, or if the asset is not enabled.

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed for 'nuwcdivnpt_stig-manager-api'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud