From 9dd89b36a31f96e0104dbbae8dcd34e7288ccf34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E5=86=B7?= Date: Wed, 21 Aug 2019 22:47:14 +0800 Subject: [PATCH] =?UTF-8?q?:fire:=20Removing=20code=20or=20files.=20?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pigx/common/data/datascope/DataScopeInterceptor.java | 4 ---- 1 file changed, 4 deletions(-) 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))