How to hide menu to unlogged users

Hi all,
I would like to know how to hide menu (tables) to unlogged users.
Thank you.
I would like to know how to hide menu (tables) to unlogged users.
Thank you.
Put a face on your database
http://xataface.com/forum/
function getPreferences(){
$auth =& Dataface_AuthenticationTool::getInstance();
$user =& $auth->getLoggedInUser();
if ( isset($user) )
{
return array('show_tables_menu'=>1); }
else {
return array('show_tables_menu'=>0); }
}