作者 RuoYi

自定义数据权限不排除重复

@@ -7,7 +7,6 @@ package com.ruoyi.common.exception; @@ -7,7 +7,6 @@ package com.ruoyi.common.exception;
7 */ 7 */
8 public class GlobalException extends RuntimeException 8 public class GlobalException extends RuntimeException
9 { 9 {
10 -  
11 private static final long serialVersionUID = 1L; 10 private static final long serialVersionUID = 1L;
12 11
13 /** 12 /**
@@ -92,7 +92,7 @@ public class DataScopeAspect @@ -92,7 +92,7 @@ public class DataScopeAspect
92 for (SysRole role : user.getRoles()) 92 for (SysRole role : user.getRoles())
93 { 93 {
94 String dataScope = role.getDataScope(); 94 String dataScope = role.getDataScope();
95 - if (conditions.contains(dataScope)) 95 + if (!DATA_SCOPE_CUSTOM.equals(dataScope) && conditions.contains(dataScope))
96 { 96 {
97 continue; 97 continue;
98 } 98 }