Skip to content

Conversation

@briri
Copy link
Contributor

@briri briri commented Sep 27, 2021

Just building off of the pattern @johnpinto1 established for us for handling errors.

This ensures that any Pundit authorization errors result in an Unauthorized error message and brings the user back to their Dashboard or the homepage if they're not logged in

Copy link
Contributor

@raycarrick-ed raycarrick-ed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks an improvement.

@raycarrick-ed
Copy link
Contributor

The test failures look like a consequence of the exception handling change so just eed changed to be new results. I think.

@briri
Copy link
Contributor Author

briri commented Sep 29, 2021

fixed up the tests

@briri briri merged commit 2efac7d into development Oct 1, 2021
@briri briri deleted the handle_pundit_errors branch October 1, 2021 15:03
portagenetwork pushed a commit to portagenetwork/roadmap that referenced this pull request Feb 24, 2022
added handler for Pundit errors on ApplicationController
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.

3 participants