Skip to content

Commit 9b53985

Browse files
fix ip whitelist all tenants
1 parent 8eb1399 commit 9b53985

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/CIPPCore/Public/Webhooks/Test-CIPPAuditLogRules.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function Test-CIPPAuditLogRules {
9292
$Data.clientip = $Data.clientip -replace ':\d+$', '' # Remove the port number if present
9393
}
9494
# Check if IP is on trusted IP list
95-
$TrustedIP = Get-CIPPAzDataTableEntity @TrustedIPTable -Filter "PartitionKey eq '$TenantFilter' and RowKey eq '$($Data.clientip)' and state eq 'Trusted'"
95+
$TrustedIP = Get-CIPPAzDataTableEntity @TrustedIPTable -Filter "((PartitionKey eq '$TenantFilter') or (PartitionKey eq 'AllTenants')) and RowKey eq '$($Data.clientip)' and state eq 'Trusted'"
9696
if ($TrustedIP) {
9797
#write-warning "IP $($Data.clientip) is trusted"
9898
$Trusted = $true

0 commit comments

Comments
 (0)