Skip to content

Commit 616fa4d

Browse files
authored
Users/subray/fix team rsc config update bug (#2001)
* Stash * Taking PR comments. * PR comments. * Fix bug where updated values for group consent were not getting persisted.
1 parent da0b89d commit 616fa4d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Teams/beta/custom/SetMgBetaTeamRscConfiguration_Update.cs

+7-1
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,12 @@ await this.Client.UpdateDefaultUserRolePermissionGrantPoliciesAssigned(
366366
}
367367
}
368368

369+
/// <summary>
370+
/// Add or update group consent settings.
371+
/// </summary>
372+
/// <param name="tenantConsentSettingsCollection">The tenant consent settings collection.</param>
373+
/// <param name="isGroupSpecificConsentEnabled">Is group specific consent enabled.</param>
374+
/// <returns>Task tracking operation.</returns>
369375
private async System.Threading.Tasks.Task AddOrUpdateGroupConsentSettings(
370376
MGTeamsInternalTenantConsentSettingsCollection tenantConsentSettingsCollection,
371377
bool isGroupSpecificConsentEnabled)
@@ -425,7 +431,7 @@ await this.Client.CreateGroupConsentSettings(
425431

426432
await this.Client.UpdateGroupConsentSettings(
427433
groupConsentSettings.Id,
428-
groupConsentSettings.Values,
434+
updatedValues,
429435
eventListener: this,
430436
sender: Pipeline);
431437

0 commit comments

Comments
 (0)