diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserExamineController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserExamineController.java index 02db601..4b65efe 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserExamineController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserExamineController.java @@ -61,7 +61,9 @@ public class SysUserExamineController extends BaseController { public String userExamine(@PathVariable("userId") Long userId, ModelMap mmap) { userService.checkUserDataScope(userId); + SysUser sysuser = getSysUser(); List roles = roleService.selectRolesByUserId(userId); + mmap.put("sysuser",sysuser); mmap.put("user", userService.selectUserById(userId)); mmap.put("roles", SysUser.isAdmin(userId) ? roles : roles.stream().filter(r -> !r.isAdmin()).collect(Collectors.toList())); mmap.put("posts", postService.selectPostsByUserId(userId));