Merge remote-tracking branch 'origin/cc_20230520_partner' into cc_20230520_partner
This commit is contained in:
@@ -58,10 +58,6 @@ public class LoginServiceImpl implements LoginService {
|
|||||||
throw new ServiceException(ErrorCodeEnum.NOT_AUTH);
|
throw new ServiceException(ErrorCodeEnum.NOT_AUTH);
|
||||||
}
|
}
|
||||||
SysRoleDO sysRole = sysRoleDAO.getHighestPriorityRoleByUserId(userId);
|
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())){
|
if(UserStatusEnum.FREEZE.getCode().equals(enterpriseUser.getUserStatus())){
|
||||||
throw new ServiceException(ErrorCodeEnum.USER_FREEZE);
|
throw new ServiceException(ErrorCodeEnum.USER_FREEZE);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user