mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-08 04:39:00 +08:00
🔥 Removing code or files. 删除无用代码
This commit is contained in:
1 parent
cc529bdf06
commit
9dd89b36a3
1 file changed
-4
-4
@@ -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<String> roleIdList = user.getAuthorities()
|
||||
.stream().map(GrantedAuthority::getAuthority)
|
||||
.filter(authority -> authority.startsWith(SecurityConstants.ROLE))
|
||||
|
||||
Reference in new issue
Block a user