Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.6
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Oct 2009 at 19:02 UTC
Updated:
27 Nov 2009 at 19:00 UTC
I know this is a stupid question, but for the life of me, I just can't find the answer. I created a "user dashboard" which adds a tab to users' profiles. However, I don't want everyone to see everyone else's Dashboard! So I want the dashboard view to only display (even the menu tab!) if the current user equals the user argument.
How do I do that??
Comments
Comment #1
tevih commentedOk.. I've been trying to figure this out, and I was thinking I cold do PHP validation...? Can someone help? I'm not a coder. Am I on the right track?
Comment #2
merlinofchaos commentedYes, this is the right track. In fact I think there is already an argument validator for this.
Use this code: