Skip to content

Commit b13e376

Browse files
committed
fix geo check
1 parent 6c5d8b9 commit b13e376

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
@@ -195,7 +195,7 @@ function Test-CIPPAuditLogRules {
195195
$CIPPClause = [System.Collections.Generic.List[string]]::new()
196196
$AddedLocationCondition = $false
197197
foreach ($condition in $conditions) {
198-
if ($condition.Property.value -eq 'CIPPGeoLocation' -and !$AddedLocationCondition) {
198+
if ($condition.Property.label -eq 'CIPPGeoLocation' -and !$AddedLocationCondition) {
199199
$conditionsString.Add("`$_.HasLocationData -eq `$true")
200200
$CIPPClause.Add('HasLocationData is true')
201201
$AddedLocationCondition = $true

0 commit comments

Comments
 (0)