Permissions: Add client side validation and error message mapping for backend response
Ticket(s) / Related Merge Requests
Summary of Changes
- Added client side check for permission with messages
- Added a message mapping in case the backend answers with a forbbiden error due to role permissions
Testing Considerations
- On Bashy social tenant:
- try to Vote
- try to Post
- try to comment
Since the backend is not sending the default values for some permission all these checks are done after the request is made.
Regression Scope
Role permission error messages
Platform Affected (web, mobile, etc)
both
Developer Testing Completed
Android device, pointing to Bashy social tenant
Screenshots
Does this impact
-
Localization -
Dark/light mode -
Guest mode