Return 404 NotFound error if ChatChannelMembership is not found #5790
Labels
bug
always open for contribution
external contributors welcome
contribution is welcome!
good first issue
good first issues for anyone new to programming and new to the project.
In our chat_channel_memberships_controller.rb are look for a membership and then attempt to authorize it. In the event that the membership is missing we end up with the following error.
Honeybadger: https://app.honeybadger.io/fault/66984/aa161bc85a5f59b582b7949c2a14d83c
Error:
Rather than raising
Pundit::NotDefinedError
here we should be returning a 404, not_found status. ApplicationController has a handynot_found
method that you can use to do this. I think you will want to implement a solution similar to this one.The text was updated successfully, but these errors were encountered: