Skip to content

Kirby 5.1.2

$auth->currentUserFromImpersonation()

Returns the currently impersonated user

$auth->currentUserFromImpersonation(): Kirby\Cms\User|null

Return types

Kirby\Cms\Userornull

This method modifies the existing $auth object it is applied to and returns it again.

Parent class

Kirby\Cms\Auth