Impersonate from user menu dropdown #6524#6533
Impersonate from user menu dropdown #6524#6533eliasfernandez wants to merge 1 commit intoEasyCorp:4.xfrom
Conversation
8371155 to
e80ccc5
Compare
|
Amazing feature!! |
|
@javiereguiluz . Do you want me to fix these conflicts? |
|
Hello, does this pull request allow you to fully manage the switch_user system? Currently my problem is that I cannot determine the url to redirect the user to when he exits "switch user" mode. It would be nice to be able to configure it. |
@bastien70 , No. It doesn't add any configuration apart from the existing one. It add the frontend logic for the users with the role EA_CAN_SWITCH_USER to switch to a different user. |
e80ccc5 to
c01b778
Compare
|
Maybe pre-populate the field with an drop down from the configured user class to make the feature a bit more sophisticated (just an idea) |


This commit introduces a feature to allow user impersonation within the EasyAdminBundle interface.
Specifically, it adds a new menu option for users with the necessary permissions to switch to a different user profile from the user profile dropdown menu.
The changes include creating a new AccessImpersonationMenuItem class, defining related translations, and updating JavaScript to handle the impersonation modal's behaviour. This update makes it easier to manage user impersonation directly within the EasyAdmin user interface.
I'm not very happy with the approach adding the necessary html to add the
data-bs-togglelogic so happy to hear ideas.It is related with #6524