mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
1、还原超管myabtis-plus自动塞入organId;
2、修复修改菜单权限,角色权限,用户权限没有立刻生效的问题;
This commit is contained in:
+2
-3
@@ -48,9 +48,8 @@ public class OrganDatabaseInterceptor implements TenantLineHandler {
|
||||
@Override
|
||||
public boolean ignoreTable(String tableName) {
|
||||
return OrganContextHolder.isIgnore() // 情况一,全局忽略多组织
|
||||
|| CollUtil.contains(ignoreTables, tableName); // 情况二,忽略多组织的表
|
||||
//忽略超管跳过orm层面自动塞入organid,超管分库分表相关的操作只看本机构下的
|
||||
// || isAdmin(); //情况三,忽略超级管理员
|
||||
|| CollUtil.contains(ignoreTables, tableName) // 情况二,忽略多组织的表
|
||||
|| isAdmin(); //情况三,忽略超级管理员
|
||||
}
|
||||
private boolean isAdmin() {
|
||||
LoginUser loginUser = SecurityFrameworkUtils.getLoginUser();
|
||||
|
||||
Reference in New Issue
Block a user