Skip to content

Permissions: Add client side validation and error message mapping for backend response

Martin Santangelo requested to merge permission-messages into develop

Ticket(s) / Related Merge Requests

#5410 (closed) #5409 (closed)

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

Screenshot_2024-02-28-08-05-39-184_com.minds.mobile

1709118447880

Does this impact

  • Localization
  • Dark/light mode
  • Guest mode

Merge request reports