Custom Permission to View Data

I need advice on wix coding that enables a third party (product supplier) who is a member of my website to be able to request permission to view another member’s (e.g. customer) data but not all of the data only specific data within a list (e.g. email address, or phone number) based on the approval of the data owner (who will receive a push notification as soon as the data has been requested) ?

Perform the query in the backend. Assign the collection with secure permissions, and use the suppressAuth option to access the “protected” data. You then just restrict the display to those fields that are permissible to be viewed by the member requesting permission.

do you have an example of the backend code with suppressAuth?

Thanks for your contribution

@anatarad not at the moment