Active
Project:
Buddylist
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Sep 2008 at 15:00 UTC
Updated:
25 Apr 2011 at 22:25 UTC
Hi,
Please, how do I restrict a 'default menu tab' to the user (owner of user page). I have moved buddylist as a tab to user pages, and well know everyone can see another person's buddylist, requests, etc.
So just more clearly, when I select 'default menu tab' for a view, how can it make visible only to the user looking at their own user page?
Is it an argument? ... as have tried :
global $user;
// Make the first argument the uid of the current user if not already set
if(arg(0) == "user" && is_numeric(arg(1))){
$args[0] = arg(1);
}else{
$args[0] = $user->uid;
}to no avail.
Would most appreciate any help, and thank you.
Lilian
Comments
Comment #1
sunThis issue cannot be solved in Views.
Comment #2
beumont commentedSo how can it be solved ?