解决登录时候获取角色的bug
This commit is contained in:
@@ -183,4 +183,8 @@ public class RoleService {
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public Role getRoleWithoutTenant(Long roleId) {
|
||||
return roleMapperEx.getRoleWithoutTenant(roleId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -750,7 +750,7 @@ public class UserService {
|
||||
if(valueArray.length>0) {
|
||||
roleId = valueArray[0];
|
||||
}
|
||||
Role role = roleService.getRole(Long.parseLong(roleId));
|
||||
Role role = roleService.getRoleWithoutTenant(Long.parseLong(roleId));
|
||||
if(role!=null) {
|
||||
return role.getType();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user