You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is pretty tedious to debug bots currently, as one has to navigate to the page to find out what went wrong if it is an HTML/JS/CSS issue. Would be nice to be able to resume a bot user as admin or some such.
The text was updated successfully, but these errors were encountered:
Nice, especially that it works for all users. However, we now need a way to stop impersonating that user and return to normal admin mode, hence I reopen the issue. Looking at the code, it seems like you are setting the id of the session-cookie to that of the person being impersonated, in which case that won't allow jumping back to admin afterwards. Currently, getting back to admin requires logging out after impersonating and then logging in again as admin. Is that single direction intended? It would be nice to have a smoother way to get back to admin.
Maybe if session-key was a list, with the head used as session-key, and only admins can add to the front of session-keys by impersonating? Then one can go back to admin by dropping the head. session-key is probably too general, so session-impersonator-key as the key of the original impersonator might work.
Another issue: it doesn't seem right to allow admins to impersonate other admins -- or can you imagine a use case? I am worried that one admin can take actions for another, and it is impossible to tell the two apart.
It is pretty tedious to debug bots currently, as one has to navigate to the page to find out what went wrong if it is an HTML/JS/CSS issue. Would be nice to be able to resume a bot user as admin or some such.
The text was updated successfully, but these errors were encountered: