Module Sharing AccessΒΆ

Sharing access configuration for the module can be done as shown below:

The example given below describes the way to configure the Payslip module as Private

include_once('vtlib/Vtiger/Module.php');
$moduleInstance = Vtiger_Module::getInstance('Payslip');
$moduleInstance->setDefaultSharing('Private');

The <PERMISSION_TYPE> can be one of the following:

Public_ReadOnly

Public_ReadWrite

Public_ReadWriteDelete

Private