update 优化 部分使用者乱设权限导致无法获取用户信息 增加权限提示

feature/model
疯狂的狮子Li 1 year ago
parent 57bbf64fbf
commit 58b4df7bb5

@ -112,6 +112,9 @@ public class SysUserController extends BaseController {
TenantHelper.clearDynamic();
}
SysUserVo user = userService.selectUserById(loginUser.getUserId());
if (ObjectUtil.isNull(user)) {
return R.fail("没有权限访问用户数据!");
}
userInfoVo.setUser(user);
userInfoVo.setPermissions(loginUser.getMenuPermission());
userInfoVo.setRoles(loginUser.getRolePermission());

Loading…
Cancel
Save