Skip to content

added handler for Pundit errors on ApplicationController#3036

Merged
briri merged 5 commits into
developmentfrom
handle_pundit_errors
Oct 1, 2021
Merged

added handler for Pundit errors on ApplicationController#3036
briri merged 5 commits into
developmentfrom
handle_pundit_errors

Conversation

@briri

@briri briri commented Sep 27, 2021

Copy link
Copy Markdown
Contributor

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

@raycarrick-ed raycarrick-ed left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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

@briri

briri commented Sep 29, 2021

Copy link
Copy Markdown
Contributor Author

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.

2 participants