疯狂的狮子Li
2021-12-18 63cb34b5638b3d5c5288b8decaaa4b1494c99335
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysRoleController.java
@@ -108,7 +108,7 @@
            LoginUser loginUser = getLoginUser();
            SysUser sysUser = userService.selectUserById(loginUser.getUserId());
            if (StringUtils.isNotNull(sysUser) && !sysUser.isAdmin()) {
                loginUser.setPermissions(permissionService.getMenuPermission(sysUser));
                loginUser.setMenuPermissions(permissionService.getMenuPermission(sysUser));
                tokenService.setLoginUser(loginUser);
            }
            return AjaxResult.success();