Skip to content
Snippets Groups Projects
Commit ed0ea47e authored by Satish's avatar Satish
Browse files

Restricting non entity modules in following a record

parent 4d01f6da
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,11 @@ class FollowRecordHandler extends VTEventHandler {
$recordId = $entityData->getId();
$moduleName = $entityData->getModuleName();
if ($moduleName != 'Users') {
$restrictedModules = array('CustomerPortal', 'Dashboard', 'Emails', 'EmailTemplates', 'ExtensionStore', 'Google', 'Home',
'Import', 'MailManager', 'Mobile', 'ModComments', 'ModTracker', 'PBXManager', 'Portal',
'RecycleBin', 'Reports', 'Rss', 'SMSNotifier', 'Users', 'Webforms', 'Webmails', 'WSAPP');
if (!in_array($moduleName, $restrictedModules)) {
$tableName = Vtiger_Functions::getUserSpecificTableName($moduleName);
//following users
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment