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

Handle exceptions in case the request doesn't have a user #274

Merged
merged 1 commit into from
May 18, 2020

Conversation

stancl
Copy link
Contributor

@stancl stancl commented May 17, 2020

In my multi-tenant app, the auth guard for some requests will only work once the DB connections are switched, so retrieving the user too early -- like Ignition does -- will result in an error.

With this change, the user probably won't be available in Ignition reports on tenant routes, but at least it won't throw an exception.

@freekmurze freekmurze merged commit 2bee717 into facade:master May 18, 2020
@freekmurze
Copy link
Collaborator

Thanks!

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