ckroon
Posts: 869
|
| Posted: 06/07/2008, 12:18 PM |
|
Hi all.. i have a panel I want to display if a user is set to be the administrator of the record in question.
I have this code on the Before Show event of the panel. Panel is visible+No
global $DBConnection1;
$plook = CCDLookUp("group_pid","groups_main","groupsmid=".CCGetFromGet("gid",0),$DBConnection1);
if (!CCGetUserID()== $plook){
$Component->Visible = True;
}else{
$Component->Visible = False;
}
No errors are thrown but it the panel displays regardless of who logs in.
Any ideas?
_________________
Walter Kempees...you are dearly missed. |