This commit is contained in:
@@ -472,11 +472,12 @@ namespace DataLoader
|
||||
#endregion
|
||||
Dictionary<ushort, Plant> plntDic = new Dictionary<ushort, Plant>();
|
||||
List<OldUser> userList = new List<OldUser>();
|
||||
private string _VePromsPath = null;
|
||||
private string optfilename;
|
||||
private string[] prflags ={ "Vfw", "Prnt", "Prnt Drft", "Prnt Chgs", "Edit", "Srch", "St Stp", "App", "App Sel", "Lib", "AMD", "Clean", "Lock" };
|
||||
private string[] sysflags ={ "NetworkLock", "SysMaint", "ROEditor", "SysAdmin" };
|
||||
#region NewMig
|
||||
public Security(string pathname)
|
||||
public Security(string pathname, string vepromspath)
|
||||
{
|
||||
if (File.Exists(pathname) == false)
|
||||
{
|
||||
@@ -484,6 +485,7 @@ namespace DataLoader
|
||||
optfilename = null;
|
||||
return;
|
||||
}
|
||||
_VePromsPath = vepromspath;
|
||||
optfilename = pathname;
|
||||
}
|
||||
public bool Migrate()
|
||||
@@ -907,7 +909,7 @@ namespace DataLoader
|
||||
User newusr = User.New();
|
||||
newusr.UserID = sUser;
|
||||
ConfigFile cfg = new ConfigFile();
|
||||
cfg.LoadUsrCfg(newusr);
|
||||
cfg.LoadUsrCfg(newusr, _VePromsPath);
|
||||
Group tmpgrp = Group.Get(dicGroupIds[s]);
|
||||
newusr.UserMemberships.Add(tmpgrp);
|
||||
if (!newusr.IsSavable) ErrorRpt.ErrorReport(newusr);
|
||||
|
Reference in New Issue
Block a user