Skip to content

Commit

Permalink
Merge pull request #1120 from Ren-Roros-Digital/FixSPDirectSharingState
Browse files Browse the repository at this point in the history
Fix: SPDirectSharing CurrentState match
  • Loading branch information
JohnDuprey authored Oct 4, 2024
2 parents ea2920f + 673a5fe commit bdbd888
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 bdbd888

Please sign in to comment.