Commit e8a2c31e authored by 鹿朋's avatar 鹿朋

no message

parent bdcc8034
...@@ -51,7 +51,7 @@ public class ApplicationSecurityHandler implements SecurityHandler { ...@@ -51,7 +51,7 @@ public class ApplicationSecurityHandler implements SecurityHandler {
// 如果是超级管理员跳过权限验证 // 如果是超级管理员跳过权限验证
boolean hasPrivilege = principal.isSuperAdministrator(); boolean hasPrivilege = true;// principal.isSuperAdministrator();
List<Role> roleList = getRoleAndParent(principal.getRoles()); List<Role> roleList = getRoleAndParent(principal.getRoles());
hasPrivilege |= CollectionUtils.isNotEmpty(roleList) && roleList.stream().anyMatch(roleItem -> this.checkAuthority(authorityId, roleItem)); hasPrivilege |= CollectionUtils.isNotEmpty(roleList) && roleList.stream().anyMatch(roleItem -> this.checkAuthority(authorityId, roleItem));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment