What are reason logic hooks would work for Admin but not regular users?

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..  

Parents
  • CE_LogicHooks.zip

    The user has permission edit the fields needed, except they can't import.

    I am working with regular logic hooks.

    Technically  they are all "Not Set" which defaults to Enabled..

  • Are none of these working?  Or is it just one of them? 

    Can you add $GLOBALS['log']->fatal('@Start ...') at the top of every function?

    Could it be because you are executing RAW sql that this is causing issues when a 'normal' user is executing the logic hook?

    In any case couple of enhancements. :

    1) You can put logic hook classes anywhere you like but I got used toadd them to custom/Extension/modules/<module>/Ext/Logic/. This way you have your logic_hooks.php in custom/Extension/modules/<module>/Ext/LogicHooks/logic_hooks.php and your logic file in the same data structure

    2) Start using SugarQuery instead of raw SQL queries.

Reply
  • Are none of these working?  Or is it just one of them? 

    Can you add $GLOBALS['log']->fatal('@Start ...') at the top of every function?

    Could it be because you are executing RAW sql that this is causing issues when a 'normal' user is executing the logic hook?

    In any case couple of enhancements. :

    1) You can put logic hook classes anywhere you like but I got used toadd them to custom/Extension/modules/<module>/Ext/Logic/. This way you have your logic_hooks.php in custom/Extension/modules/<module>/Ext/LogicHooks/logic_hooks.php and your logic file in the same data structure

    2) Start using SugarQuery instead of raw SQL queries.

Children