Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
Merge branch 'dev' of https://github.com/SharePoint/PnP-PowerShell in…
Browse files Browse the repository at this point in the history
…to dev
  • Loading branch information
erwinvanhunen committed Aug 20, 2020
2 parents eccca17 + 60f5c0c commit e8b5649
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Binary file modified Binaries/SharePointPnP.Modernization.Framework.dll
Binary file not shown.
Binary file modified Binaries/release/SharePointPnP.Modernization.Framework.dll
Binary file not shown.
5 changes: 5 additions & 0 deletions Commands/Search/SetSearchSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ public class SetSearchSettings : PnPWebCmdlet

protected override void ExecuteCmdlet()
{
if(this.ClientContext.Url.ToLower().Contains("-my."))
{
throw new InvalidOperationException("This cmdlet does not work for OneDrive for Business sites");
}

bool hasSearchPageUrl = ParameterSpecified(nameof(SearchPageUrl));
if (hasSearchPageUrl && SearchPageUrl == null)
{
Expand Down

0 comments on commit e8b5649

Please sign in to comment.