Skip to content

Commit

Permalink
Users/subray/fix team rsc config update bug (#2001)
Browse files Browse the repository at this point in the history
* Stash

* Taking PR comments.

* PR comments.

* Fix bug where updated values for group consent were not getting persisted.
  • Loading branch information
subray2014 authored May 4, 2023
1 parent da0b89d commit 616fa4d
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,12 @@ await this.Client.UpdateDefaultUserRolePermissionGrantPoliciesAssigned(
}
}

/// <summary>
/// Add or update group consent settings.
/// </summary>
/// <param name="tenantConsentSettingsCollection">The tenant consent settings collection.</param>
/// <param name="isGroupSpecificConsentEnabled">Is group specific consent enabled.</param>
/// <returns>Task tracking operation.</returns>
private async System.Threading.Tasks.Task AddOrUpdateGroupConsentSettings(
MGTeamsInternalTenantConsentSettingsCollection tenantConsentSettingsCollection,
bool isGroupSpecificConsentEnabled)
Expand Down Expand Up @@ -425,7 +431,7 @@ await this.Client.CreateGroupConsentSettings(

await this.Client.UpdateGroupConsentSettings(
groupConsentSettings.Id,
groupConsentSettings.Values,
updatedValues,
eventListener: this,
sender: Pipeline);

Expand Down

0 comments on commit 616fa4d

Please sign in to comment.