"Pane" of death

warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'nodereference_autocomplete_access' was given in /home/mnnnecdq/public_html/drupalme/includes/menu.inc on line 452.
Wednesday, December 16, 2009 - 20:42

I had to hide a panel pane for certain users on my latest project. Babybrukt is a site where people can create their own ads. Buy, sell or give away used baby "stuff". The advertiser needs to know how many times his or her ad has been viewed. I created a view that gives me the data and went to the panels dashboard.

Panels visibility rules is the place you want to go. Create a new rule and give it these settings.

Visibility rule: user:Compare - First user = node author - second user = Logged in user
Grant access if user context are: Equal.

I spent almost 2 hours on this, even talked to a guy from the NL. We thought it had to be solved by php (grin). Check out the screenshot for the settings.

01. Pane of death :-)

Comments

Add comment

The content of this field is kept private and will not be shown publicly.