将ReadOnly用户定义为Super用户,以避免在Account编辑视图中显示。
This commit is contained in:
SL 2023-09-18 14:42:03 +08:00
parent aa62db176a
commit 4c4bc19c93
2 changed files with 6 additions and 4 deletions

View File

@ -12,7 +12,6 @@ using Aitex.Core.RT.Event;
using Aitex.Core.RT.Log; using Aitex.Core.RT.Log;
using Aitex.Core.Util; using Aitex.Core.Util;
using Aitex.Core.WCF; using Aitex.Core.WCF;
using DocumentFormat.OpenXml.Wordprocessing;
using MECF.Framework.Common.Account.Extends; using MECF.Framework.Common.Account.Extends;
using MECF.Framework.Common.Equipment; using MECF.Framework.Common.Equipment;

View File

@ -212,13 +212,16 @@ namespace MECF.Framework.Common.Account.Extends
var item3 = new AccountEx(strUserId, strLoginName, strPassword, strFirstName, strLastName, strEmail, lstRolesBelongTo, strDescription); var item3 = new AccountEx(strUserId, strLoginName, strPassword, strFirstName, strLastName, strEmail, lstRolesBelongTo, strDescription);
lstUsers.Add(item3); lstUsers.Add(item3);
} }
var admin = new AccountEx("-1", "admin", "admin", "", "", "", new List<string> { "-1" }) var admin = new AccountEx("-1", "sic_admin", "sic_admin", "", "", "", new List<string> { "-1" })
{ {
IsSuper = true IsSuper = true
}; };
lstUsers.Add(admin); lstUsers.Add(admin);
var readOnly = new AccountEx("-2", "Read-Only", "read-only", "", "", "", new List<string> { "-1" }); var readOnly = new AccountEx("-2", "Read-Only", "read-only", "", "", "", new List<string> { "-1" })
{
IsSuper = true
};
lstUsers.Add(readOnly); lstUsers.Add(readOnly);
_accountList = lstUsers; _accountList = lstUsers;