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 @@ -157,8 +157,8 @@ function Invoke-CIPPStandardSPFileRequests {
157157 $CurrentValue = @ {
158158 CoreRequestFilesLinkEnabled = $CurrentState.CoreRequestFilesLinkEnabled
159159 OneDriveRequestFilesLinkEnabled = $CurrentState.OneDriveRequestFilesLinkEnabled
160- CoreRequestFilesLinkExpirationInDays = $ CurrentState.CoreRequestFilesLinkExpirationInDays
161- OneDriveRequestFilesLinkExpirationInDays = $ CurrentState.OneDriveRequestFilesLinkExpirationInDays
160+ CoreRequestFilesLinkExpirationInDays = if ( $null -ne $ExpirationDays -and $WantedState -eq $true ) { $ CurrentState.CoreRequestFilesLinkExpirationInDays } else { $null }
161+ OneDriveRequestFilesLinkExpirationInDays = if ( $null -ne $ExpirationDays -and $WantedState -eq $true ) { $ CurrentState.OneDriveRequestFilesLinkExpirationInDays } else { $null }
162162 SharingCapability = $SharingCapabilityEnum [$CurrentState.SharingCapability ]
163163 }
164164 $ExpectedValue = @ {
You can’t perform that action at this time.
0 commit comments