From b71e8970fe5e4074b6b380d6e20b7926718dfded Mon Sep 17 00:00:00 2001 From: youjie <273666957@qq.com> Date: 星期四, 26 八月 2021 11:59:05 +0800 Subject: [PATCH] update 优化生成的业务名 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java index 20f6325..28c9f15 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java @@ -104,6 +104,7 @@ @GetMapping(value = { "/", "/{userId}" }) public AjaxResult getInfo(@PathVariable(value = "userId", required = false) Long userId) { + userService.checkUserDataScope(userId); Map<String, Object> ajax = new HashMap<>(); List<SysRole> roles = roleService.selectRoleAll(); ajax.put("roles", SysUser.isAdmin(userId) ? roles : roles.stream().filter(r -> !r.isAdmin()).collect(Collectors.toList())); -- Gitblit v1.9.3