$auth->currentUserFromSession()
Returns the logged in user by checking the current session and finding a valid valid user id in there
Parameters
Name | Type | Default |
---|---|---|
$session | Kirby\Session\Session |array |null |
null |
Return type
Kirby\Cms\User
|null