|
@@ -132,8 +132,8 @@ public class SysRoleController extends BaseController
|
|
|
LoginUser loginUser = getLoginUser();
|
|
|
if (StringUtils.isNotNull(loginUser.getUser()) && !loginUser.getUser().isAdmin())
|
|
|
{
|
|
|
- loginUser.setPermissions(permissionService.getMenuPermission(loginUser.getUser()));
|
|
|
loginUser.setUser(userService.selectUserByUserName(loginUser.getUser().getUserName()));
|
|
|
+ loginUser.setPermissions(permissionService.getMenuPermission(loginUser.getUser()));
|
|
|
tokenService.setLoginUser(loginUser);
|
|
|
}
|
|
|
return success();
|