Skip to content

Commit

Permalink
Fix get user
Browse files Browse the repository at this point in the history
  • Loading branch information
garbast committed Nov 7, 2023
1 parent 27c9c02 commit 14458ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Service/FrontendUserService.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class FrontendUserService
{
public static function getCurrentUser(): FrontendUserAuthentication
public static function getCurrentUser(): ?FrontendUserAuthentication
{
$request = $GLOBALS['TYPO3_REQUEST'];
return $request->getAttribute('frontend.user');
Expand Down

0 comments on commit 14458ea

Please sign in to comment.