From 4c4bc19c93502bd215a2b40718496a4bc73a23d0 Mon Sep 17 00:00:00 2001 From: SL <123@123.com> Date: Mon, 18 Sep 2023 14:42:03 +0800 Subject: [PATCH] =?UTF-8?q?[Common]=20=E5=B0=86ReadOnly=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E4=B8=BASuper=E7=94=A8=E6=88=B7=EF=BC=8C?= =?UTF-8?q?=E4=BB=A5=E9=81=BF=E5=85=8D=E5=9C=A8Account=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E8=A7=86=E5=9B=BE=E4=B8=AD=E6=98=BE=E7=A4=BA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MECF/Framework/Common/Account/AccountExManager.cs | 1 - .../MECF/Framework/Common/Account/Extends/RoleLoader.cs | 9 ++++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/MECF.Framework.Common/MECF/Framework/Common/Account/AccountExManager.cs b/MECF.Framework.Common/MECF/Framework/Common/Account/AccountExManager.cs index dcd812b..85e6a38 100644 --- a/MECF.Framework.Common/MECF/Framework/Common/Account/AccountExManager.cs +++ b/MECF.Framework.Common/MECF/Framework/Common/Account/AccountExManager.cs @@ -12,7 +12,6 @@ using Aitex.Core.RT.Event; using Aitex.Core.RT.Log; using Aitex.Core.Util; using Aitex.Core.WCF; -using DocumentFormat.OpenXml.Wordprocessing; using MECF.Framework.Common.Account.Extends; using MECF.Framework.Common.Equipment; diff --git a/MECF.Framework.Common/MECF/Framework/Common/Account/Extends/RoleLoader.cs b/MECF.Framework.Common/MECF/Framework/Common/Account/Extends/RoleLoader.cs index 893667b..6290866 100644 --- a/MECF.Framework.Common/MECF/Framework/Common/Account/Extends/RoleLoader.cs +++ b/MECF.Framework.Common/MECF/Framework/Common/Account/Extends/RoleLoader.cs @@ -212,13 +212,16 @@ namespace MECF.Framework.Common.Account.Extends var item3 = new AccountEx(strUserId, strLoginName, strPassword, strFirstName, strLastName, strEmail, lstRolesBelongTo, strDescription); lstUsers.Add(item3); } - var admin = new AccountEx("-1", "admin", "admin", "", "", "", new List { "-1" }) + var admin = new AccountEx("-1", "sic_admin", "sic_admin", "", "", "", new List { "-1" }) { IsSuper = true }; lstUsers.Add(admin); - - var readOnly = new AccountEx("-2", "Read-Only", "read-only", "", "", "", new List { "-1" }); + + var readOnly = new AccountEx("-2", "Read-Only", "read-only", "", "", "", new List { "-1" }) + { + IsSuper = true + }; lstUsers.Add(readOnly); _accountList = lstUsers;