没角色的用户放行
This commit is contained in:
@@ -58,10 +58,6 @@ public class LoginServiceImpl implements LoginService {
|
||||
throw new ServiceException(ErrorCodeEnum.NOT_AUTH);
|
||||
}
|
||||
SysRoleDO sysRole = sysRoleDAO.getHighestPriorityRoleByUserId(userId);
|
||||
if(Objects.isNull(sysRole)){
|
||||
log.info("当前用户没角色:{}", userId);
|
||||
throw new ServiceException(ErrorCodeEnum.NOT_AUTH);
|
||||
}
|
||||
if(UserStatusEnum.FREEZE.getCode().equals(enterpriseUser.getUserStatus())){
|
||||
throw new ServiceException(ErrorCodeEnum.USER_FREEZE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user