diff --git a/CHANGELOG.md b/CHANGELOG.md index 40a332032..bddd3c512 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,6 +48,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Fixed issue with `Get-PnPChangelog -Nightly` throwing an error [#5070](https://github.com/pnp/powershell/pull/5070) - Fixed spelling errors in Privileged Identity Management cmdlets: renamed `Get-PnPPriviledgedIdentityManagementRole`, `Get-PnPPriviledgedIdentityManagementEligibleAssignment`, and `Enable-PnPPriviledgedIdentityManagement` to use correct spelling "Privileged". Old cmdlet names remain functional as aliases for backward compatibility. [#5119](https://github.com/pnp/powershell/pull/5119) - Fixed Typos on `Move-PnPFolder, Get-PnPPowerPlatformSolution, Get-PnPPowerPlatformCustomConnector, Get-PnPPowerApp, Get-PnPPlannerPlan, Get-PnPContainer` cmdlets [#5124](https://github.com/pnp/powershell/pull/5124) +- Fixed issue with `Set-PnPSite -HidePeoplePreviewingFiles $true` and `Set-PnPSite -HidePeopleWhoHaveListsOpen $true` added missing properties [#5003](https://github.com/pnp/powershell/issues/5003) ### Removed diff --git a/src/Commands/Model/SPOSite.cs b/src/Commands/Model/SPOSite.cs index 830c2bdc0..156764267 100644 --- a/src/Commands/Model/SPOSite.cs +++ b/src/Commands/Model/SPOSite.cs @@ -104,6 +104,8 @@ public class SPOSite public SiteUserInfoVisibilityPolicyValue OverrideBlockUserInfoVisibility { get; set; } public bool OverrideSharingCapability { get; set; } public bool AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled { get; set; } + public bool HidePeoplePreviewingFiles { get; set; } + public bool HidePeopleWhoHaveListsOpen { get; set; } #endregion @@ -202,6 +204,8 @@ public SPOSite(SiteProperties props, bool? disableSharingForNonOwnersStatus) OverrideSharingCapability = props.OverrideSharingCapability; OverrideBlockUserInfoVisibility = props.OverrideBlockUserInfoVisibility; AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled = props.AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled; + HidePeoplePreviewingFiles = props.HidePeoplePreviewingFiles; + HidePeopleWhoHaveListsOpen = props.HidePeopleWhoHaveListsOpen; } } } \ No newline at end of file diff --git a/src/Commands/Site/SetSite.cs b/src/Commands/Site/SetSite.cs index 12a829bd1..f85c9c178 100644 --- a/src/Commands/Site/SetSite.cs +++ b/src/Commands/Site/SetSite.cs @@ -495,6 +495,8 @@ private bool IsTenantProperty() => BlockDownloadPolicy.HasValue || ExcludeBlockDownloadPolicySiteOwners.HasValue || ParameterSpecified(nameof(ExcludedBlockDownloadGroupIds)) || - ListsShowHeaderAndNavigation.HasValue; + ListsShowHeaderAndNavigation.HasValue || + HidePeoplePreviewingFiles.HasValue || + HidePeopleWhoHaveListsOpen.HasValue; } }