From 7bb2b3eee79358240f6cdd803e72ff929f68c3a4 Mon Sep 17 00:00:00 2001 From: Argo-Lenovo Date: Thu, 22 Dec 2016 16:27:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=9B=B4=E6=94=B9=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E4=B8=8E=E6=9B=B4=E6=94=B9=E6=98=BE=E7=A4=BA=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E5=88=A4=E6=96=AD=E6=9D=A1=E4=BB=B6=E5=8F=98=E6=9B=B4?= =?UTF-8?q?=E4=B8=BA=E6=9C=AC=E4=BA=BA=E6=88=96=E8=B6=85=E7=BA=A7=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Controllers/UsersController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bootstrap.Admin/Controllers/UsersController.cs b/Bootstrap.Admin/Controllers/UsersController.cs index f272f10f..e9db9605 100644 --- a/Bootstrap.Admin/Controllers/UsersController.cs +++ b/Bootstrap.Admin/Controllers/UsersController.cs @@ -38,7 +38,7 @@ namespace Bootstrap.Admin.Controllers } var ret = false; var userName = User.Identity.Name; - if (value.UserName.Equals(userName, System.StringComparison.OrdinalIgnoreCase) && !LgbPrincipal.IsAdmin(userName)) + if (value.UserName.Equals(userName, System.StringComparison.OrdinalIgnoreCase) || LgbPrincipal.IsAdmin(userName)) { if (value.UserStatus == 1) ret = UserHelper.SaveUserInfoByName(value);