From f6aed30243f0ac0b1139acbb9f0d48126efe78e4 Mon Sep 17 00:00:00 2001 From: 20918 <2091823062@qq.com> Date: Tue, 16 Apr 2024 09:04:06 +0800 Subject: [PATCH] userexamine --- .../ruoyi/web/controller/system/SysUserExamineController.java | 2 ++ 1 file changed, 2 insertions(+) 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));