Skip to content

Commit 1ae1dd0

Browse files
Fixing issue 5003 (#5126)
Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com>
1 parent 068337d commit 1ae1dd0

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
4848
- Fixed issue with `Get-PnPChangelog -Nightly` throwing an error [#5070](https://github.com/pnp/powershell/pull/5070)
4949
- 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)
5050
- Fixed Typos on `Move-PnPFolder, Get-PnPPowerPlatformSolution, Get-PnPPowerPlatformCustomConnector, Get-PnPPowerApp, Get-PnPPlannerPlan, Get-PnPContainer` cmdlets [#5124](https://github.com/pnp/powershell/pull/5124)
51+
- Fixed issue with `Set-PnPSite -HidePeoplePreviewingFiles $true` and `Set-PnPSite -HidePeopleWhoHaveListsOpen $true` added missing properties [#5003](https://github.com/pnp/powershell/issues/5003)
5152

5253
### Removed
5354

src/Commands/Model/SPOSite.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ public class SPOSite
104104
public SiteUserInfoVisibilityPolicyValue OverrideBlockUserInfoVisibility { get; set; }
105105
public bool OverrideSharingCapability { get; set; }
106106
public bool AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled { get; set; }
107+
public bool HidePeoplePreviewingFiles { get; set; }
108+
public bool HidePeopleWhoHaveListsOpen { get; set; }
107109

108110
#endregion
109111

@@ -202,6 +204,8 @@ public SPOSite(SiteProperties props, bool? disableSharingForNonOwnersStatus)
202204
OverrideSharingCapability = props.OverrideSharingCapability;
203205
OverrideBlockUserInfoVisibility = props.OverrideBlockUserInfoVisibility;
204206
AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled = props.AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled;
207+
HidePeoplePreviewingFiles = props.HidePeoplePreviewingFiles;
208+
HidePeopleWhoHaveListsOpen = props.HidePeopleWhoHaveListsOpen;
205209
}
206210
}
207211
}

src/Commands/Site/SetSite.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,8 @@ private bool IsTenantProperty() =>
495495
BlockDownloadPolicy.HasValue ||
496496
ExcludeBlockDownloadPolicySiteOwners.HasValue ||
497497
ParameterSpecified(nameof(ExcludedBlockDownloadGroupIds)) ||
498-
ListsShowHeaderAndNavigation.HasValue;
498+
ListsShowHeaderAndNavigation.HasValue ||
499+
HidePeoplePreviewingFiles.HasValue ||
500+
HidePeopleWhoHaveListsOpen.HasValue;
499501
}
500502
}

0 commit comments

Comments
 (0)