I'm having trouble in my Drupal the Views and I don't really know how to solve it.
Let's suppose that we have two roles named Org1 and Org2. We can have more than one user per role so for example:
- A and B belong to Org1.
- C belongs to Org2.
The trouble I'm having is that I want that the content posted by A is seen by all the users in Org1 (in this case A,B) but not the users that are in Org2 (C).
How could be this made? I'm new to Drupal but not to programming in general. I've tried several modules but maybe due to my ignorance I have not been able to make it work (so any suggestion would be great). Any programatically suggestion also would be great (but it will be first time programming in Drupal 7).
What I have currently in mind and would probably solve my problem I think that is to filter by the user is logged in (if I'm user A for example filter by Org1). How could this be done?