mirror of https://gitee.com/stylefeng/roses
【8.1.3】获取用户角色的数据范围,增加对当前公司的筛选
parent
3761183f98
commit
fd03e24df8
|
@ -50,7 +50,7 @@ public class UserRoleDataScopeImpl implements UserRoleDataScopeApi {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取用户的角色id集合
|
// 获取用户的角色id集合
|
||||||
List<Long> userRoleIdList = sysUserRoleServiceApi.getUserRoleIdList(loginUser.getUserId());
|
List<Long> userRoleIdList = sysUserRoleServiceApi.getUserRoleIdListCurrentCompany(loginUser.getUserId(), loginUser.getCurrentOrgId());
|
||||||
|
|
||||||
// 如果这个角色列表大于1,也就是不单纯是普通角色,则将普通角色去掉,以配置的角色为主
|
// 如果这个角色列表大于1,也就是不单纯是普通角色,则将普通角色去掉,以配置的角色为主
|
||||||
Long defaultRoleId = sysRoleService.getDefaultRoleId();
|
Long defaultRoleId = sysRoleService.getDefaultRoleId();
|
||||||
|
|
Loading…
Reference in New Issue