I'm using a view to populate an Entity reference field on a profile. (So it's a view of "Entity Reference" display type.)
I want to filter this view to show (and allow users to select) only:
- Published content (OK)
- Content of a certain type (OK)
- Only a subset of nodes available to the current user (OK)
- If the current user is admin or some other role, bypass the previous filter (3) and show all nodes (but still respect filters 1 and 2) (not OK)
Filters 1 and 2 are always mandatory; then either filter 3 or 4 must also be mandatory. I've tried to rearrange filters into filter groups to make this work, but I cannot find a way to build filter 4.
For filter 4, I need to filter based on the role of the current user (NOT author), and I cannot find how to do that.
I'm looking for a Relationship to bring in the current user data (something like "User: current"), and then filter on that data, but where can I find that?