You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardMailContacts.ps1
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -74,14 +74,14 @@ function Invoke-CIPPStandardMailContacts {
74
74
Write-StandardsAlert-message "Marketing contact email is not set to $($Contacts.MarketingContact)"-object $Object-tenant $tenant-standardName 'MailContacts'-standardId $Settings.standardId
75
75
Write-LogMessage-API 'Standards'-tenant $tenant-message "Marketing contact email is not set to $($Contacts.MarketingContact)"-sev Info
76
76
}
77
-
if ($CurrentInfo.securityComplianceNotificationMails-eq$Contacts.SecurityContact) {
77
+
if (!$Contacts.SecurityContact-or$CurrentInfo.technicalNotificationMails-contains$Contacts.SecurityContact) {
78
78
Write-LogMessage-API 'Standards'-tenant $tenant-message "Security contact email is set to $($Contacts.SecurityContact)"-sev Info
Write-StandardsAlert-message "Security contact email is not set to $($Contacts.SecurityContact)"-object $Object-tenant $tenant-standardName 'MailContacts'-standardId $Settings.standardId
82
82
Write-LogMessage-API 'Standards'-tenant $tenant-message "Security contact email is not set to $($Contacts.SecurityContact)"-sev Info
83
83
}
84
-
if ($CurrentInfo.technicalNotificationMails-eq$Contacts.TechContact) {
84
+
if (!$Contacts.TechContact-or$CurrentInfo.technicalNotificationMails-contains$Contacts.TechContact) {
85
85
Write-LogMessage-API 'Standards'-tenant $tenant-message "Technical contact email is set to $($Contacts.TechContact)"-sev Info
0 commit comments