Commit 4f7fc96
committed
fix(webapp): reset the view-as-user flag when switching impersonation target
The flag is scoped to a single impersonation session, which is why stopping
impersonation drops it. Switching straight from one target to another only
became possible in this branch, and that path sets the impersonated id without
touching the flag, so an admin viewing target A as the user landed on target B
with the toggle still on. It is now cleared whenever the target changes.1 parent f1c6eb3 commit 4f7fc96
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
48 | 56 | | |
49 | 57 | | |
50 | 58 | | |
| |||
0 commit comments