Prepopulate server roles in Login dialog (#2011)

This commit is contained in:
Karl Burtram
2023-04-17 16:11:49 -07:00
committed by GitHub
parent add216cc1e
commit 54bd06ef98
2 changed files with 3 additions and 2 deletions

View File

@@ -101,8 +101,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Security
}
// TODO move this to LoginData
// TODO support role assignment for Azure
prototype.ServerRoles.PopulateServerRoles();
// TODO support role assignment for Azure
foreach (string role in login.ServerRoles ?? Enumerable.Empty<string>())
{
prototype.ServerRoles.SetMember(role, true);