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

Respect status code of AuthorizationException #1260

Merged
merged 1 commit into from
Nov 7, 2022

Conversation

rolandboon
Copy link
Contributor

The AuthorizationException handled here can have an optionally set status code. By default this status is null, so the previous code to map this to 403 seems correct. But if I throw a (new AuthorizationException())->withStatus(401) I would expect the exception handler to respect this code.

@taylorotwell taylorotwell merged commit d1145bd into laravel:9.x Nov 7, 2022
@rolandboon rolandboon deleted the patch-1 branch November 7, 2022 14:53
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.

None yet

2 participants