Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure middleware and reverse ui uses the correct guard #96

Merged
merged 1 commit into from
Nov 13, 2021

Conversation

samdharris
Copy link
Contributor

When dealing with multiple guards, the middleware and reverse ui doesn't know which guard is impersonated.

Suppose you have the default web guard (used for accessing Nova) as well as a customer guard (used by customers to access your platform). You impersonate the customer guard but because Laravel doesn't know which guard you are using, it'll default to using the web guard. This setup means that auth()->check() is returning false which means that the reverse ui isn't being appended to the layout.

This PR corrects this error.

@KABBOUCHI KABBOUCHI merged commit 0c6cff8 into KABBOUCHI:master Nov 13, 2021
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.

2 participants