Skip to content

Commit

Permalink
fix SPDirectSharing CurrentState match
Browse files Browse the repository at this point in the history
  • Loading branch information
OfficialEsco committed Sep 20, 2024
1 parent 4fc8317 commit 673a5fe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function Invoke-CIPPStandardSPDirectSharing {
$CurrentState = Get-CIPPSPOTenant -TenantFilter $Tenant |
Select-Object -Property DefaultSharingLinkType

$StateIsCorrect = ($CurrentState.DefaultSharingLinkType -eq 'Direct')
$StateIsCorrect = ($CurrentState.DefaultSharingLinkType -eq 'Direct' -or $CurrentState.DefaultSharingLinkType -eq 1)

if ($Settings.remediate -eq $true) {
if ($StateIsCorrect -eq $true) {
Expand Down

0 comments on commit 673a5fe

Please sign in to comment.