I have multiple roles on the site. I have used Role reference field in Nodes to choose which Role should see Nodes. Then I have set Views to show content based on roles and Role reference field in Node.
Now I'm facing issue with Search. Search shows all content and users in different roles can see all the content.
I was looking for solution to set access per node, but Content access and Nodeaccess modules only allow access to be set after node is created. And in these case user need to set access to two fields: Role reference field AND Content access/Nodeaccess tab. Not good. I do not want to create own content type for each role.
Is there a way to use Role reference field to set access control to node?
I did install both Content access and Nodeaccess modules and tried to use the Rules module to achieve this, but seems that neither of the modules support Rules.
Any help/tips appreciated.