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

authorize_user! returns 403 if request.xhr? == true #64

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

y-sugawara-acs
Copy link
Contributor

In most cases, when ACL rejects a request, it is preferable for asynchronous requests to return a 403 Forbidden status rather than redirecting to the root path.

@ta-ando ta-ando merged commit aa647d8 into main Sep 10, 2024
8 checks passed
@ta-ando ta-ando deleted the authorize_user_returns_403_for_xhr branch September 10, 2024 00:42
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