$auth->status()
Returns the authentication status object
$auth->status(Kirby\Session\Session|array|null $session = null, bool $allowImpersonation = true): Kirby\Cms\Auth\Status
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $session | Kirby\Session\Sessionorarrayornull |
null
|
|
| $allowImpersonation | bool |
true
|
If set to false, only the actually logged in user will be returned |
Return type
This method modifies the existing $auth object it is applied to and returns it again.