jmix icon indicating copy to clipboard operation
jmix copied to clipboard

UserIndicator doesn't reload user when refreshing v2.x

Open ilushaaa opened this issue 1 year ago • 0 comments

Environment

Jmix version: 2.x

Bug Description

If a currently logged in user has been changed, then invoking UserIndicator#refreshUser has no effect because CurrentUserSubstitution#getAuthenticatedUser returns old instance.

Steps To Reproduce

  1. Create two users.
  2. Set User1 as substitution for User2
  3. Login as User1.
  4. Change User1 first name.
  5. Change user in the user indicator panel.

Current Behavior

User doesn't change and shows old user first name.

Expected Behavior

User indicator should show the actual user info.

Related to #2465

ilushaaa avatar Feb 20 '24 11:02 ilushaaa