mirror of https://gitee.com/stylefeng/roses
【8.3.4】【tenant】角色权限绑定,获取菜单信息时候去掉租户切换过程
parent
c7224a58d6
commit
8590a68556
|
@ -2,6 +2,7 @@ package cn.stylefeng.roses.kernel.sys.modular.role.service.impl;
|
|||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.extra.spring.SpringUtil;
|
||||
import cn.stylefeng.roses.kernel.db.mp.tenant.context.TenantSwitchContext;
|
||||
import cn.stylefeng.roses.kernel.event.sdk.publish.BusinessEventPublisher;
|
||||
import cn.stylefeng.roses.kernel.log.api.util.BusinessLogUtil;
|
||||
import cn.stylefeng.roses.kernel.sys.api.SysUserRoleServiceApi;
|
||||
|
@ -67,7 +68,9 @@ public class PermissionAssignServiceImpl implements PermissionAssignService {
|
|||
Set<Long> userRoleLimitScope = userRoleServiceApi.findCurrentUserRoleLimitScope();
|
||||
|
||||
// 2. 整理出一个总的响应的结构树,选择状态为空
|
||||
RoleBindPermissionResponse selectTreeStructure = this.createSelectTreeStructure(userRoleLimitScope);
|
||||
RoleBindPermissionResponse selectTreeStructure = TenantSwitchContext.me().doNoTenantChange(() -> {
|
||||
return this.createSelectTreeStructure(userRoleLimitScope);
|
||||
});
|
||||
|
||||
// 3. 获取角色绑定的应用,菜单,功能列表
|
||||
Set<Long> roleBindMenusAndOptions = this.getRoleBindMenusAndOptions(roleBindPermissionRequest.getRoleId());
|
||||
|
|
Loading…
Reference in New Issue