Skip to content

Commit

Permalink
Fixed Bug: Changed parameter with null value to correct paramater to …
Browse files Browse the repository at this point in the history
…get group for provisioning and removed Files Tab trom Template
  • Loading branch information
Arthur Jungmann committed Nov 7, 2024
1 parent e288399 commit d7015d5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private static JToken CreateTeamFromProvisioningSchema(PnPMonitoredScope scope,
// If security is configured, add the members and owners defined in the template to the Team
if (team.Security != null)
{
if (!SetGroupSecurity(scope, parser, team, teamId, accessToken, graphBaseUri)) return null;
if (!SetGroupSecurity(scope, parser, team, parsedGroupId, accessToken, graphBaseUri)) return null;
}

// Then promote the Group into a Team or update it, if it already exists. Patching a team doesn't return an ID, so use the parsedGroupId directly (teamId and groupId are the same).
Expand Down Expand Up @@ -1950,6 +1950,9 @@ private static List<TeamTab> GetTeamChannelTabs(ExtractConfiguration configurati
var teamTabs = teamTabsJObject.ToObject<TeamTab[]>();
foreach (var tab in teamTabs)
{
if (tab.Configuration != null && tab.ID == "3ed5b337-c2c9-4d5d-b7b4-84ff09a8fc1c") {
continue;
}
if (tab.Configuration != null && string.IsNullOrEmpty(tab.Configuration.ContentUrl))
{
tab.Configuration = null;
Expand Down

0 comments on commit d7015d5

Please sign in to comment.