diff --git a/Modules/CIPPCore/Public/Webhooks/Test-CIPPAuditLogRules.ps1 b/Modules/CIPPCore/Public/Webhooks/Test-CIPPAuditLogRules.ps1 index 3288712f18a4..fea710132087 100644 --- a/Modules/CIPPCore/Public/Webhooks/Test-CIPPAuditLogRules.ps1 +++ b/Modules/CIPPCore/Public/Webhooks/Test-CIPPAuditLogRules.ps1 @@ -143,7 +143,7 @@ function Test-CIPPAuditLogRules { } #Filter data based on conditions. - $Where = $Configuration | Where-Object { $_.LogType -eq $LogType } | ForEach-Object { + $Where = $Configuration | ForEach-Object { $conditions = $_.Conditions | ConvertFrom-Json | Where-Object { $_.Input.value -ne '' } $actions = $_.Actions $conditionStrings = [System.Collections.Generic.List[string]]::new()