I have recently started our CRM from scratch and created packages for all the customizations. We have gone to production and realized that the logic hooks are not being done when the user is not an admin.
Please help..
I have recently started our CRM from scratch and created packages for all the customizations. We have gone to production and realized that the logic hooks are not being done when the user is not an admin.
Please help..
A coded logic_hook runs in the context of the current user. If the current user has no access to certain modules and the logic_hook tries to access one of these modules, you get an error.
Harald Kuske
Principal Solution Architect – Professional Services, EMEA
hkuske@sugarcrm.com
SugarCRM Deutschland GmbH
A coded logic_hook runs in the context of the current user. If the current user has no access to certain modules and the logic_hook tries to access one of these modules, you get an error.
Harald Kuske
Principal Solution Architect – Professional Services, EMEA
hkuske@sugarcrm.com
SugarCRM Deutschland GmbH
Not sure about this. I think that it will fail silently?
$record = BeanFactory::retrieveBean('Accounts','<id you are not allowed to see>');
The factory will not throw an exception but will simply return 'null'. And you don't check that correct you will get the error. Otherwise you don't. But maybe i'm wrong. In any case if the error is thrown users should get an error or something similar?