|
|
|
@ -69,7 +69,10 @@ public class DirectoryTreeService { |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
// 如果权限不允许,则需要判断当前节点的所有子级节点是否有允许的目录,如果有则需要返回到前端的树组件中
|
|
|
|
|
Set<String> childrenIds = getDirectoryList(dir, true, false, busType).stream().map(DirectoryVo::getId).collect(Collectors.toSet()); |
|
|
|
|
Set<String> childrenIds = getDirectoryList(dir, true, false, busType) |
|
|
|
|
.stream() |
|
|
|
|
.map(DirectoryVo::getId) |
|
|
|
|
.collect(Collectors.toSet()); |
|
|
|
|
for (String id : childrenIds) { |
|
|
|
|
if (permisDis.contains(id)) { |
|
|
|
|
return true; |
|
|
|
|