File tree Expand file tree Collapse file tree
Modules/CIPPStandards/Public/Standards Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -164,8 +164,8 @@ function Invoke-CIPPStandardSPFileRequests {
164164 $ExpectedValue = @ {
165165 CoreRequestFilesLinkEnabled = $WantedState
166166 OneDriveRequestFilesLinkEnabled = $WantedState
167- CoreRequestFilesLinkExpirationInDays = if ($null -ne $ExpirationDays -and $WantedState -eq $true ) { $ExpirationDays } else { $null }
168- OneDriveRequestFilesLinkExpirationInDays = if ($null -ne $ExpirationDays -and $WantedState -eq $true ) { $ExpirationDays } else { $null }
167+ CoreRequestFilesLinkExpirationInDays = if ($null -ne $ExpirationDays ) { $ExpirationDays } else { $CurrentState .CoreRequestFilesLinkExpirationInDays }
168+ OneDriveRequestFilesLinkExpirationInDays = if ($null -ne $ExpirationDays ) { $ExpirationDays } else { $CurrentState .OneDriveRequestFilesLinkExpirationInDays }
169169 SharingCapability = if ($WantedState -eq $true ) { ' External Users and Guests (Anyone)' } else { $SharingCapabilityEnum [$CurrentState.SharingCapability ] }
170170 }
171171 Set-CIPPStandardsCompareField - FieldName ' standards.SPFileRequests' - CurrentValue $CurrentValue - ExpectedValue $ExpectedValue - Tenant $Tenant
You can’t perform that action at this time.
0 commit comments