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 AccessDenied in management sessions #3458

Merged
merged 1 commit into from
Apr 25, 2019

Conversation

javierm
Copy link
Member

@javierm javierm commented Apr 25, 2019

References

Objectives

Don't generate a 500 Internal Server Error when trying to access the management sign in page without proper authorization.

Notes

I've chosen to do the same thing we do in the ApplicationController. There are other options to handle this request, like redirecting to the login page or returning a 401 Unauthorized HTTP status.

We were raising a `CanCan::AcessDenied` and were getting a 500 Internal
Server Error.

I've chosen to do the same thing we do in the ApplicationController.
There are other options to handle this request, like redirecting to the
login page or returning a 401 Unauthorized HTTP status.
@javierm javierm merged commit 95ce139 into master Apr 25, 2019
@javierm javierm deleted the backport-fix_access_denied_exception branch April 25, 2019 19:53
@javierm javierm self-assigned this Apr 25, 2019
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