Hello, I have a particular configuration of sugar, I have the relationship User -> many -> Agencies . I have to show the list Agencies only those connected to current_user.
I have create a view.list.php
$module = "Users";
$bean = BeanFactory::getBean($module,$current_user->id);
$lista_agenzie = $bean->users_pt_agenzia_1->getBeans();
how can I show this list of agencies "$lista_agenzie" in view list??