How to hide menu to unlogged users
Archived from the Xataface Users forum.
yakotey — Tue May 19, 2009 6:37 am
Hi all,
I would like to know how to hide menu (tables) to unlogged users.
Thank you.
silma — Fri May 22, 2009 8:54 am
What about :
- Code: Select all
- `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); }
}`
in your \conf\ApplicationDelegate.php ?
Without guarantee, i’m a beginner !
yakotey — Mon May 25, 2009 1:47 am
That worked.
Great!
Thanx man!