Download the PHP package adamkiss/kirby-impersonate without Composer
On this page you can find all versions of the php package adamkiss/kirby-impersonate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download adamkiss/kirby-impersonate
More information about adamkiss/kirby-impersonate
Files in adamkiss/kirby-impersonate
Package kirby-impersonate
Short Description Impersonate users in Kirby CMS Panel
License MIT
Informations about the package kirby-impersonate
Kirby Impersonate: Panel actions for impersonating users
This plugin allows impersonating users in your panel and/or frontend, by adding a session mark for "user is being impersonated" and then forcibly calling kirby()->impersonate()
with the target user.
Installation
As with all Kirby plugins, downloading zip should also work. As should using git submodules, but I never tested that.
Usage
If you want to use this plugin only for your panel debugging, just install it, potentially configure who can impersonate/be impersonated and you're done. If you also want to test different frontend availability, you can change where the admin gets redirect after they start impersonation, and the frontend should just work as if it was the user being impersonated.
For notification about ongoing impersonation, you can use kirby()->user()->isImpersonated()
, and you can use the route /__impersonate/stop
to stop impersonation. For instance, using following in your template:
Configuration
By default, any user with access to users table can impersonate any other user. At the start of the impersonation, window reload happens, and at the end of the impersonation, you'll be redirected to users view in the panel; All of these are configurable via options:
License
MIT, (c) 2024 Adam Kiss
See LICENSE.md for more information