Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print originating user name #112

Open
webbastelbude opened this issue Sep 11, 2022 · 1 comment
Open

Print originating user name #112

webbastelbude opened this issue Sep 11, 2022 · 1 comment

Comments

@webbastelbude
Copy link

Hi,

is there any way to get the details from the originating user?

I want to display "Switch back to " in the navigation.

Thx and greetings

Holger

@SebRollen
Copy link

You can use the #{name}_masquerade_owner to get the instance that is masquerading, and then call it's name method.

So for example, if your user-class is called User, you could call user_masquerade_owner to get a reference to the instance of the class that is masquerading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants