I am building an app with react-dom, and started integrating with Instantsearch recently.
The user can search blogposts based on their titles. However, the posts belong to specific groups, and only members of a specific group should be able to see the post in the search results.
Inside the post object is a “whitelist” range field, where the allowed groupIDs are.
Inside the user’s profile is a “groups” range field where all the groups he belongs to are listed.
Is it possible to use the Config widget + the “filters” parameter to check if there is a common value in both ranges?
I can pass the list from the user’s profile as a props to the Algolia component, but I can’t really seem to use it.
Thanks a lot for your help!