forked from github/dataease
Revert "refactor: 去掉无用代码"
This commit is contained in:
parent
62c8d90558
commit
e9cc8e2c25
@ -40,6 +40,7 @@ public class DirService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public List<DirItemDTO> query(DirRequest request) {
|
public List<DirItemDTO> query(DirRequest request) {
|
||||||
|
// CurrentUserDto user = AuthUtils.getUser();
|
||||||
String userId = String.valueOf(AuthUtils.getUser().getUserId());
|
String userId = String.valueOf(AuthUtils.getUser().getUserId());
|
||||||
List<PanelEntity> panelEntities = new ArrayList<>();
|
List<PanelEntity> panelEntities = new ArrayList<>();
|
||||||
if (StringUtils.isNotBlank(request.getName())) {
|
if (StringUtils.isNotBlank(request.getName())) {
|
||||||
@ -57,6 +58,17 @@ public class DirService {
|
|||||||
return dirItemDTO;
|
return dirItemDTO;
|
||||||
}).collect(Collectors.toList());
|
}).collect(Collectors.toList());
|
||||||
return dtos;
|
return dtos;
|
||||||
|
|
||||||
|
// if (user.getUserId() == 1 && StringUtils.equals("admin", user.getUsername())) {
|
||||||
|
// return dtos;
|
||||||
|
// }
|
||||||
|
// List<String> permissions = proxy().permissions();
|
||||||
|
// return dtos.stream().filter(
|
||||||
|
// dto -> permissions.stream().anyMatch(
|
||||||
|
// permission -> StringUtils.equals(permission, dto.getId())
|
||||||
|
// )
|
||||||
|
// ).collect(Collectors.toList());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public DirService proxy() {
|
public DirService proxy() {
|
||||||
|
Loading…
Reference in New Issue
Block a user