
hello,
i use permissions with users profiles.
i need to hide some tables tabs with users profiles. how do that ?
thanks
i use permissions with users profiles.
i need to hide some tables tabs with users profiles. how do that ?
thanks
Currently you can't do this.Ê The best way to achieve this sort of thing is to hide the tables menu using preferences:
And then make your own menu.
-Steve
OK.. you probably could filter this in the getPreferences() method.Ê You can access this array using:
$app =& Dataface_Application::getInstance();
$tables =& $app->_conf['_tables'];
if (userIsNotAllowedToSeeFooTable()){
ÊÊÊ unset($tables['foo']);
}