File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/Commands/Provisioning/Site Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -62,8 +62,8 @@ protected override void ExecuteCmdlet()
6262 var tokenParser = new Framework . Provisioning . ObjectHandlers . TokenParser ( ClientContext . Web , template ) ;
6363
6464 //We will remove a list if it's found so we can get the list
65- ListInstance listInstance = template . Lists . Find ( l => tokenParser . ParseString ( l . Title ) == spList . Title ) ;
66-
65+ ListInstance listInstance = template . Lists . Find ( l => tokenParser . ParseString ( l . Title ) == spList . Title ) ;
66+
6767 if ( listInstance == null )
6868 {
6969 throw new ApplicationException ( "List does not exist in the template file." ) ;
@@ -158,6 +158,10 @@ private PnP.Framework.Provisioning.Model.Folder GetFolder(Microsoft.SharePoint.C
158158 var roleBindings = roleAssignment . RoleDefinitionBindings ;
159159 foreach ( var roleBinding in roleBindings )
160160 {
161+ if ( roleBinding . Name == "Limited Access" )
162+ {
163+ continue ;
164+ }
161165 retFolder . Security . RoleAssignments . Add ( new PnP . Framework . Provisioning . Model . RoleAssignment ( ) { Principal = principalName , RoleDefinition = roleBinding . Name } ) ;
162166 }
163167 }
You can’t perform that action at this time.
0 commit comments