From 58cc555f553da068ead68ed9fba384bbf6a60968 Mon Sep 17 00:00:00 2001 From: wenjy Date: Wed, 16 Aug 2023 15:14:15 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E8=B6=85=E7=BA=A7=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=91=98=E5=AF=86=E7=A0=81=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Mesnac.Action.Default/Purview/CheckPurviewControl.cs | 2 +- Actions/Default/Mesnac.Action.Default/Purview/FrmSysLogin.cs | 4 ++-- Main/MCEdit/Data/MCProject/nodeDataSource.xml | 2 +- Main/Mesnac.Gui.Run/ViewContent/BrowserCommand.cs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Actions/Default/Mesnac.Action.Default/Purview/CheckPurviewControl.cs b/Actions/Default/Mesnac.Action.Default/Purview/CheckPurviewControl.cs index ff37614..e1cb867 100644 --- a/Actions/Default/Mesnac.Action.Default/Purview/CheckPurviewControl.cs +++ b/Actions/Default/Mesnac.Action.Default/Purview/CheckPurviewControl.cs @@ -28,7 +28,7 @@ namespace Mesnac.Action.Default.Purview { return;//窗体不验证权限 } - if (UserInfo.Instance.RoleGUID == "-mesnac") + if (UserInfo.Instance.RoleGUID == "-99") { return;//超级用户 } diff --git a/Actions/Default/Mesnac.Action.Default/Purview/FrmSysLogin.cs b/Actions/Default/Mesnac.Action.Default/Purview/FrmSysLogin.cs index c74fd68..f2e9e34 100644 --- a/Actions/Default/Mesnac.Action.Default/Purview/FrmSysLogin.cs +++ b/Actions/Default/Mesnac.Action.Default/Purview/FrmSysLogin.cs @@ -206,7 +206,7 @@ namespace Mesnac.Action.Default.Purview #region 如果是强制登录则放行 - if (Mesnac.Basic.UserInfo.Instance.RoleGUID.Equals("-mesnac") || _ower == Mesnac.Gui.Workbench.WorkbenchSingleton.Workbench) + if (Mesnac.Basic.UserInfo.Instance.RoleGUID.Equals("-99") || _ower == Mesnac.Gui.Workbench.WorkbenchSingleton.Workbench) { return true; } @@ -306,7 +306,7 @@ namespace Mesnac.Action.Default.Purview private bool superLogin() { bool bResult = false; - if (this.txtPWD.Text == "-mesnac") + if (this.txtPWD.Text == "-99") { UserInfo.Instance.RoleGUID = "-99"; UserInfo.Instance.UserGUID = "-"; diff --git a/Main/MCEdit/Data/MCProject/nodeDataSource.xml b/Main/MCEdit/Data/MCProject/nodeDataSource.xml index 3600a0d..9638ce4 100644 --- a/Main/MCEdit/Data/MCProject/nodeDataSource.xml +++ b/Main/MCEdit/Data/MCProject/nodeDataSource.xml @@ -1,3 +1,3 @@ - + \ No newline at end of file diff --git a/Main/Mesnac.Gui.Run/ViewContent/BrowserCommand.cs b/Main/Mesnac.Gui.Run/ViewContent/BrowserCommand.cs index 0c30d06..22fa5b5 100644 --- a/Main/Mesnac.Gui.Run/ViewContent/BrowserCommand.cs +++ b/Main/Mesnac.Gui.Run/ViewContent/BrowserCommand.cs @@ -246,7 +246,7 @@ namespace Mesnac.Gui.Run.ViewContent public bool IsValid(object owner, ICSharpCode.Core.Condition condition) { //如果是超级管理员或没经过登录(独立运行)则可用 - if (UserInfo.Instance.RoleGUID == "-mesnac" || UserInfo.Instance.RoleGUID == "-1") + if (UserInfo.Instance.RoleGUID == "-99" || UserInfo.Instance.RoleGUID == "-1") { return true; }