I'm trying to set up a View in Drupal (both as a page and a block) that can only be accessed by specific users. The goal is to ensure that only the user assigned to a particular "Person" content type can view this block.
- The Person field here is a reference field that links to another content type: Person.
- Each Person is authored by a specific user.
What I'm aiming for:
- I want the View to display content only to the user who is associated with that "Person".
- Essentially, if a user authored that "Person", they should be the only one able to see the View page/block.
However, I’m having trouble figuring out how to configure this in Drupal. I've attempted a few relationships and contextual filter setups, but I haven't been successful. 😭
Can anyone guide me on how to set this up correctly? I’d appreciate any insights. Thanks in advance for your help!
Drupal version 10.4.0
