😎代码清理
This commit is contained in:
parent
45b8e46935
commit
86dfa73d25
@ -455,5 +455,4 @@ public static class ParseExtensions
|
||||
}
|
||||
|
||||
#endregion Dictionary
|
||||
|
||||
}
|
||||
@ -140,7 +140,7 @@ public class SysRoleService : IDynamicApiController, ITransient
|
||||
{
|
||||
// 禁止删除系统内置角色
|
||||
var sysRole = await _sysRoleRep.GetByIdAsync(input.Id) ?? throw Oops.Oh(ErrorCodeEnum.D1002);
|
||||
if(sysRole.SysFlag == YesNoEnum.Y) throw Oops.Oh(ErrorCodeEnum.D1019);
|
||||
if (sysRole.SysFlag == YesNoEnum.Y) throw Oops.Oh(ErrorCodeEnum.D1019);
|
||||
|
||||
// 若角色有用户则禁止删除
|
||||
var userIds = await _sysUserRoleService.GetUserIdList(input.Id);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user