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