Skip to content

Conversation

indykoning
Copy link
Member

Summary

Fixes: #79 (comment)

In some cases the user may be logged out because we inject the UserContextInterface before Magento has had the chance to populate it.

Result

With this change we check wether the area code can be fetched, and if it is an area code where user context might be available.
And only then inject the userContext so. This should ensure user context is already compiled and added.

Checklist

  • I've ran composer run codestyle
  • I've ran composer run phpstan

@indykoning indykoning merged commit 13747c7 into master Dec 11, 2024
4 checks passed
@indykoning indykoning deleted the bugfix/admin-logout branch December 11, 2024 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

I can't login admin panel
4 participants