用户更改密码与更改显示名称判断条件变更为本人或超级管理员
This commit is contained in:
parent
80972be861
commit
7bb2b3eee7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue