File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Modules/CIPPCore/Public/Standards Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,10 @@ function Invoke-CIPPStandardsharingDomainRestriction {
4040 if ($mode -eq ' none' -or $null -eq $mode ) {
4141 $StateIsCorrect = $CurrentState.sharingDomainRestrictionMode -eq ' none'
4242 } else {
43- $SelectedDomains = [String []]$Settings.Domains.Split (' ,' ).Trim()
43+ $SelectedDomains = [String []]$Settings.Domains.Split (' ,' ).Trim() ?? @ ()
4444 $StateIsCorrect = ($CurrentState.sharingDomainRestrictionMode -eq $mode ) -and
45- ($mode -eq ' allowList' -and (! (Compare-Object - ReferenceObject $CurrentState.sharingAllowedDomainList - DifferenceObject $SelectedDomains ))) -or
46- ($mode -eq ' blockList' -and (! (Compare-Object - ReferenceObject $CurrentState.sharingBlockedDomainList - DifferenceObject $SelectedDomains )))
45+ ($mode -eq ' allowList' -and (! (Compare-Object - ReferenceObject $CurrentState.sharingAllowedDomainList - DifferenceObject $SelectedDomains ))) -or
46+ ($mode -eq ' blockList' -and (! (Compare-Object - ReferenceObject $CurrentState.sharingBlockedDomainList - DifferenceObject $SelectedDomains )))
4747 }
4848
4949 if ($Settings.remediate -eq $true ) {
You can’t perform that action at this time.
0 commit comments