管理员用户不允许禁用

This commit is contained in:
不做码农 2023-05-18 21:51:07 +08:00
parent e22fffa964
commit 1e00abd6f9

View File

@ -183,6 +183,7 @@ namespace ZR.Service
/// <returns></returns>
public int ChangeUserStatus(SysUser user)
{
CheckUserAllowed(user);
return Update(user, it => new { it.Status }, f => f.UserId == user.UserId);
}