diff --git a/pigx-common/pigx-common-data/src/main/java/com/pig4cloud/pigx/common/data/datascope/DataScopeInterceptor.java b/pigx-common/pigx-common-data/src/main/java/com/pig4cloud/pigx/common/data/datascope/DataScopeInterceptor.java index 3d8eb7660..9275f993f 100644 --- a/pigx-common/pigx-common-data/src/main/java/com/pig4cloud/pigx/common/data/datascope/DataScopeInterceptor.java +++ b/pigx-common/pigx-common-data/src/main/java/com/pig4cloud/pigx/common/data/datascope/DataScopeInterceptor.java @@ -86,10 +86,6 @@ public class DataScopeInterceptor extends AbstractSqlParserHandler implements In // 优先获取赋值数据 if (CollUtil.isEmpty(deptIds)) { PigxUser user = SecurityUtils.getUser(); - if (user == null) { - throw new CheckedException("auto datascope, set up security details true"); - } - List roleIdList = user.getAuthorities() .stream().map(GrantedAuthority::getAuthority) .filter(authority -> authority.startsWith(SecurityConstants.ROLE))