token生成时权限过滤问题处理

This commit is contained in:
Chopper 2021-06-29 16:43:38 +08:00
parent c1b9f287c7
commit f509b8745d

View File

@ -84,7 +84,7 @@ public class ManagerTokenGenerate extends AbstractTokenGenerate {
//for循环路径集合
for (String path : paths) {
//如果是超级权限 则计入超级权限
if (menu.getIsSupper()) {
if (menu.getIsSupper() != null && menu.getIsSupper()) {
//如果已有超级权限则这里就不做权限的累加
if (!superPermissions.contains(path)) {
superPermissions.add(path);