Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.9
Component:
user data
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Nov 2011 at 20:54 UTC
Updated:
30 Nov 2011 at 22:08 UTC
I'm attempting to have a block with a field that is only visible to users who are authors of a specific document. For example, I have students who turn in an assignment and they list each author in a user reference field. I'm attempting to set up a view that would only allow that block to show up for those users.
I know I can just use user reference (is user logged in) and a node reference argument to node id to do that on a basic level, but I"m unsure as to how to do it for the rest of the group members so it shows up for only them.
Comments
Comment #1
Vidus commentedFigured it out myself. Set up a relationship to the field that listed group members, then limited the view by the Current User Filter, with the relationship being used for that filter. Works great.