0

In my application, I have a content type called resource. In the resource content type, I have an entity reference that defines which roles should be able to view that resource.

When somebody is logged in as a certain role and does a search, he is able to view documents that don't belong to his role. How can I hook to the search results and remove the ones he should not be able to see?

Thanks

1 Answer 1

0

I think this module will help you Access by term and don't forget to enable Node access settings in search api settings.

1
  • This might help if I started using it in the beginning. But I have an existing application that I need to come up with a solution for given the structure that is currently in place on the website. Thanks.
    – farjam
    Commented Apr 7, 2016 at 13:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.