Skip to content

Commit 71b0a18

Browse files
compares
1 parent 932f43a commit 71b0a18

3 files changed

Lines changed: 7 additions & 9 deletions

File tree

Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardGroupTemplate.ps1

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,12 +242,10 @@ function Invoke-CIPPStandardGroupTemplate {
242242
}
243243

244244
$CurrentValue = @{
245-
ExistingGroups = $existingGroups.displayName
246-
MissingGroups = @($MissingGroups)
245+
MissingGroups = $MissingGroups ? @($MissingGroups) : @()
247246
}
248247
$ExpectedValue = @{
249-
ExistingGroups = $GroupTemplates.displayName
250-
MissingGroups = @()
248+
MissingGroups = @()
251249
}
252250

253251
Set-CIPPStandardsCompareField -FieldName 'standards.GroupTemplate' -CurrentValue $CurrentValue -ExpectedValue $ExpectedValue -TenantFilter $Tenant

Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardSpoofWarn.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ function Invoke-CIPPStandardSpoofWarn {
139139
}
140140
$ExpectedValue = @{
141141
Enabled = $IsEnabled
142-
AllowList = @($Settings.AllowListAdd.value ?? $Settings.AllowListAdd ?? @())
142+
AllowList = $Settings.AllowListAdd.value ? @($Settings.AllowListAdd.value) : @()
143143
IsCompliant = $true
144144
}
145145
Set-CIPPStandardsCompareField -FieldName 'standards.SpoofWarn' -CurrentValue $CurrentValue -ExpectedValue $ExpectedValue -Tenant $Tenant

Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardUserSubmissions.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,9 @@ function Invoke-CIPPStandardUserSubmissions {
225225
ReportJunkToCustomizedAddress = if ([string]::IsNullOrWhiteSpace($Email)) { $false } else { $true }
226226
ReportNotJunkToCustomizedAddress = if ([string]::IsNullOrWhiteSpace($Email)) { $false } else { $true }
227227
ReportPhishToCustomizedAddress = if ([string]::IsNullOrWhiteSpace($Email)) { $false } else { $true }
228-
ReportJunkAddresses = if ([string]::IsNullOrWhiteSpace($Email)) { $null } else { $Email }
229-
ReportNotJunkAddresses = if ([string]::IsNullOrWhiteSpace($Email)) { $null } else { $Email }
230-
ReportPhishAddresses = if ([string]::IsNullOrWhiteSpace($Email)) { $null } else { $Email }
228+
ReportJunkAddresses = if ([string]::IsNullOrWhiteSpace($Email)) { $null } else { @($Email) }
229+
ReportNotJunkAddresses = if ([string]::IsNullOrWhiteSpace($Email)) { $null } else { @($Email) }
230+
ReportPhishAddresses = if ([string]::IsNullOrWhiteSpace($Email)) { $null } else { @($Email) }
231231
RuleState = if ([string]::IsNullOrWhiteSpace($Email)) {
232232
@{
233233
State = 'Disabled'
@@ -236,7 +236,7 @@ function Invoke-CIPPStandardUserSubmissions {
236236
} else {
237237
@{
238238
State = 'Enabled'
239-
SentTo = $Email
239+
SentTo = @($Email)
240240
}
241241
}
242242
}

0 commit comments

Comments
 (0)