修复:将目录的子级目录权限赋予普通用户后,普通用户无法查看的问题

master
Guo XIn 1 year ago
parent 5192c15e9c
commit d68ce21926
  1. 5
      shandan-system/src/main/java/com/keyware/shandan/bianmu/service/DirectoryTreeService.java

@ -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;