sharetribe / web-template

Sharetribe Web Template - starting point to create a client app to your marketplace
Other
31 stars 136 forks source link

Viewing rights #459

Closed SariSaar closed 1 month ago

SariSaar commented 1 month ago

This PR prepares the template for handling viewing rights, denoted by the read permission in the user's effectivePermissionSet relationship.

When a user's viewing rights have been revoked:

Screenshot 2024-10-01 at 12 21 06

New translations

  "NoAccessPage.viewListings.schemaTitle": "No viewing rights",
  "NoAccessPage.viewListings.heading": "You don't have viewing rights",
  "NoAccessPage.viewListings.content": "To view this content, you need to receive viewing rights from the {marketplaceName} team.",

Notes

For developers who see this before the feature is fully released in the API & Docs:

When viewing rights have been revoked for a marketplace user, the following Marketplace API endpoints will be restricted:

Listings GET listings/query GET listings/show

Reviews GET reviews/query GET reviews/show

Timeslots GET timeslots/query