Skip to content

Commit e8e8e0b

Browse files
Merge branch 'dev' of https://github.com/CyberDrain/CIPP into dev
Synced from CyberDrain/CIPP@8fbafd0
1 parent 4bccc8d commit e8e8e0b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Modules/CIPPHTTP/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-ListCVEManagement.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ function Invoke-ListCVEManagement {
1212
$TenantFilter = $Request.Query.tenantFilter
1313
$UseReportDB = $Request.Query.UseReportDB
1414

15-
if ($UseReportDB -eq 'true') {
15+
# AllTenants always uses the reporting database - the live path queries a single tenant's
16+
# Defender TVM API and cannot fan out across tenants within one request.
17+
if ($UseReportDB -eq 'true' -or $TenantFilter -eq 'AllTenants') {
1618
try {
1719
$GraphRequest = Get-CIPPCVEReport -TenantFilter $TenantFilter -ErrorAction Stop
1820
$StatusCode = [HttpStatusCode]::OK

0 commit comments

Comments
 (0)