calcom / cal.com

Scheduling infrastructure for absolutely everyone.
https://cal.com
Other
32.56k stars 8.06k forks source link

Stopping Impersonation Logs User Out #16967

Open Asher-Z-Engel opened 1 month ago

Asher-Z-Engel commented 1 month ago

Found a bug? Please fill out the sections below. 👍

Issue Summary

When I impersonate another User, and then I want to switch back to my own account, it logs me out, instead of taking me back to where I was when I started impersonating.

Steps to Reproduce

  1. Impersonated another User
  2. Clicked on 'Click here to stop' in the orange banner telling me that I'm impersonating another user

Any other relevant information. For example, why do you consider this a bug and what did you expect to happen instead?

Actual Results

It logs me out, and I need to log in again in order to get back to my account. Which means that first I need to click the button to go back to the login page, then I need to log in, then I need to navigate back to the team members page to find the next team member I want to impersonate

Expected Results

It should take me back to my own account, and to the page where I was when I started impersonating the other user

Technical details

https://www.loom.com/share/1ae0bed07cd84ee29dbbc9412a7cbf6c?sid=5079c26a-a28b-4ac6-a1f0-011ffd289aae

Evidence

see loom above

sriharika13 commented 5 days ago

I understand the issue, Pl assign it me, I can solve it