优化Context信息,防止泄漏问题

This commit is contained in:
RuoYi
2022-08-22 10:24:20 +08:00
parent 9b3767a954
commit aadb7a41cb
5 changed files with 14 additions and 11 deletions

View File

@ -251,7 +251,7 @@ public class SysRoleController extends BaseController
/**
* 获取对应角色部门树列表
*/
@PreAuthorize("@ss.hasPermi('system:role:list')")
@PreAuthorize("@ss.hasPermi('system:role:query')")
@GetMapping(value = "/deptTree/{roleId}")
public AjaxResult deptTree(@PathVariable("roleId") Long roleId)
{
@ -260,5 +260,4 @@ public class SysRoleController extends BaseController
ajax.put("depts", deptService.selectDeptTreeList(new SysDept()));
return ajax;
}
}