mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 10:58:30 -05:00
Apply UI values regardless of add or edit code path (#1926)
This commit is contained in:
@@ -109,12 +109,13 @@ namespace Microsoft.SqlTools.ServiceLayer.Security
|
||||
this.isSchemaOwned = new Dictionary<string, bool>();
|
||||
this.isMember = new Dictionary<string, bool>();
|
||||
|
||||
// load user properties from SMO object
|
||||
if (!context.IsNewObject)
|
||||
{
|
||||
this.LoadUserData(context);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
// apply user properties provided by client
|
||||
if (userInfo != null)
|
||||
{
|
||||
this.name = userInfo.Name;
|
||||
@@ -125,7 +126,6 @@ namespace Microsoft.SqlTools.ServiceLayer.Security
|
||||
this.password = DatabaseUtils.GetReadOnlySecureString(userInfo.Password);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.LoadRoleMembership(context, userInfo);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user