提示信息修改
This commit is contained in:
parent
0b239daba2
commit
b2b9e68184
|
@ -111,7 +111,7 @@ public class SysLoginService {
|
|||
// 获取当前登录账号的当前角色信息
|
||||
SysRole sysRole = null;
|
||||
for (SysRole role : sysRoleList) { if(SecurityUtil.getLoginUser().getCurrentRoleCode().equals(role.getCode())) sysRole = role; }
|
||||
if(ObjectUtil.isEmpty(sysRole)) throw new CustomException("当前用户没有该角色");
|
||||
if(ObjectUtil.isEmpty(sysRole)) throw new CustomException("用户暂无权限,请联系管理员授权");
|
||||
SecurityUtil.getLoginUser().setCurrentRole(sysRole);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue