|
|
@ -63,6 +63,13 @@ public class DirectoryTreeService { |
|
|
|
Set<String> permisDis = "write".equals(permis) ? dirPermissionService.getByWritePermis(user) : dirPermissionService.getByReadPermis(user); |
|
|
|
Set<String> permisDis = "write".equals(permis) ? dirPermissionService.getByWritePermis(user) : dirPermissionService.getByReadPermis(user); |
|
|
|
// 判断权限范围
|
|
|
|
// 判断权限范围
|
|
|
|
List<DirectoryVo> permisDirectoryList = StreamUtil.as(directoryList).filter(dir -> { |
|
|
|
List<DirectoryVo> permisDirectoryList = StreamUtil.as(directoryList).filter(dir -> { |
|
|
|
|
|
|
|
if (dir.getDirectoryType() == DirectoryType.FILE |
|
|
|
|
|
|
|
|| dir.getDirectoryType() == DirectoryType.LINK_FILE |
|
|
|
|
|
|
|
|| dir.getDirectoryType() == DirectoryType.METADATA |
|
|
|
|
|
|
|
|| dir.getDirectoryType() == DirectoryType.LINK_METADATA) { |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (dir.getReviewStatus() == status || status == null) { |
|
|
|
if (dir.getReviewStatus() == status || status == null) { |
|
|
|
boolean permisAllow = permisDis.contains(dir.getId()); |
|
|
|
boolean permisAllow = permisDis.contains(dir.getId()); |
|
|
|
if (permisAllow) { |
|
|
|
if (permisAllow) { |
|
|
|