mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-17 02:51:45 -05:00
[User Management] Fix server role drop for login (#1899)
This commit is contained in:
@@ -231,6 +231,12 @@ namespace Microsoft.SqlTools.ServiceLayer.Security
|
|||||||
}
|
}
|
||||||
|
|
||||||
var _ = prototype.ServerRoles.ServerRoleNames;
|
var _ = prototype.ServerRoles.ServerRoleNames;
|
||||||
|
|
||||||
|
foreach (string role in prototype.ServerRoles.ServerRoleNames)
|
||||||
|
{
|
||||||
|
prototype.ServerRoles.SetMember(role, false);
|
||||||
|
}
|
||||||
|
|
||||||
foreach (string role in login.ServerRoles)
|
foreach (string role in login.ServerRoles)
|
||||||
{
|
{
|
||||||
prototype.ServerRoles.SetMember(role, true);
|
prototype.ServerRoles.SetMember(role, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user