权限优化
This commit is contained in:
parent
605ce4ea82
commit
73a7d95129
|
|
@ -50,6 +50,9 @@ public class FilePermissionCheckAspect {
|
||||||
if (args[0] instanceof FileInfoQueryDTO) {
|
if (args[0] instanceof FileInfoQueryDTO) {
|
||||||
FileInfoQueryDTO fileInfoQueryDTO = (FileInfoQueryDTO) args[0];
|
FileInfoQueryDTO fileInfoQueryDTO = (FileInfoQueryDTO) args[0];
|
||||||
id = fileInfoQueryDTO.getParentId();
|
id = fileInfoQueryDTO.getParentId();
|
||||||
|
if (id.length() > 6) {
|
||||||
|
return joinPoint.proceed();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Map<String,Boolean> permissions = permissionService.getUserPermission(userId,id,true);
|
Map<String,Boolean> permissions = permissionService.getUserPermission(userId,id,true);
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,6 @@ public class EdFileInfoController {
|
||||||
@Resource
|
@Resource
|
||||||
private EdFileInfoService edFileInfoService;
|
private EdFileInfoService edFileInfoService;
|
||||||
|
|
||||||
@RequiredPermission(value = FilePermission.VIEW)
|
|
||||||
@RequestMapping("tree")
|
@RequestMapping("tree")
|
||||||
public ElectromagneticResult<?> tree() {
|
public ElectromagneticResult<?> tree() {
|
||||||
return edFileInfoService.tree();
|
return edFileInfoService.tree();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue