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
[4.x] Add ability to impersonate a user #8622
[4.x] Add ability to impersonate a user #8622
Conversation
Hey Ryan, this is awesome! A while back I submitted a PR to the addon that made the login quiet, that way the last login date doesn’t change when you start/stop impersonation (which IMO it shouldn’t). The implementation uses the same approach as Eloquent’s save quietly method. Be great if this could do the same. What do you think? I haven’t tested this so apologies if that’s already covered. |
Certainly. That should be there now. |
This is cool. I know it's a draft but FYI when I click "back to my account", it just removes the impersonation status and I'm still logged in as who I was impersonating. |
One thought: it might be good to have an option to disable this feature. We have some sites where Statamic is used off the back of a Laravel app and we don't want admins impersonating users (they could change stuff they shouldn't be able to). |
@jasonvarga that was me being dumb. Fixed now. This should be good apart from the styling of the button :) |
Thanks for this @ryanmitchell! |
Thanks for making it look better! |
This PR adds the ability to impersonate a user through a drop down menu on the user list:
There is an add-on for this, but it would be good to bring it into core.
Once impersonating it adds a little 'stop impersonating' icon to the bottom right, that @jackmcdade should really do some magic on to make it more 'rad'.