From 58b4df7bb53b499c09cd0aa97441c3a1d2c355db Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期五, 08 九月 2023 12:27:36 +0800 Subject: [PATCH] update 优化 部分使用者乱设权限导致无法获取用户信息 增加权限提示 --- ruoyi-admin/src/main/java/org/dromara/web/service/SysLoginService.java | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/ruoyi-admin/src/main/java/org/dromara/web/service/SysLoginService.java b/ruoyi-admin/src/main/java/org/dromara/web/service/SysLoginService.java index ad8a41e..3a19f8c 100644 --- a/ruoyi-admin/src/main/java/org/dromara/web/service/SysLoginService.java +++ b/ruoyi-admin/src/main/java/org/dromara/web/service/SysLoginService.java @@ -140,6 +140,7 @@ loginUser.setUserId(user.getUserId()); loginUser.setDeptId(user.getDeptId()); loginUser.setUsername(user.getUserName()); + loginUser.setNickname(user.getNickName()); loginUser.setUserType(user.getUserType()); loginUser.setMenuPermission(permissionService.getMenuPermission(user.getUserId())); loginUser.setRolePermission(permissionService.getRolePermission(user.getUserId())); -- Gitblit v1.9.3