提示信息修改

This commit is contained in:
aoli.qu 2023-11-02 16:35:08 +08:00
parent 0b239daba2
commit b2b9e68184
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ public class SysLoginService {
// 获取当前登录账号的当前角色信息 // 获取当前登录账号的当前角色信息
SysRole sysRole = null; SysRole sysRole = null;
for (SysRole role : sysRoleList) { if(SecurityUtil.getLoginUser().getCurrentRoleCode().equals(role.getCode())) sysRole = role; } 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); SecurityUtil.getLoginUser().setCurrentRole(sysRole);