[Vtigercrm-developers] Role based default module

Vincenzo Bruno v.bruno at vinsoft.it
Thu Apr 30 07:37:11 GMT 2020


Hi,

Vtiger has one default module for all. I need users are sent to
different module at login, based on their role. Is already there a way
to to that?

Even a user preference would be Ok, but I didn't find it.

Eventually the solution is quite simple:

1) add a field to the table vtiger_role with the module's name

2) in function process() inside includes/main/WebUI.php check if that
field is not empty and override the global default value
$defaultModule = vglobal('default_module');

What do you think about?

Vincenzo



More information about the vtigercrm-developers mailing list