Disable Dahslets and AddDashlet button for all users

Disable Dahslets and AddDashlet button for all users

January 2, 2014 PHP SugarCRM Uncategorized 0


1) step:

Open file : sugarcrm/modules/Home/index.php

comment line 280

$sugar_smarty->assign('maxCount', empty($sugar_config['max_dashlets_homepage']) ? 15 : $sugar_config['max_dashlets_homepage']);

$sugar_smarty->assign('dashletCount', $count);

$sugar_smarty->assign('dashletIds', '["' . implode('","', $dashletIds) . '"]');


//$sugar_smarty->assign('columns', $display);


2) perform repair.


3) now Dahslet will be disable from all users



FOR DISABLE ADD-Dashlet Button.


Goto => System Setting 


Click on Prevent user customizable Homepage layout: checkbox.



Result :

Result
Without Dashlet And AddDashlet button

 

Leave a Reply

Your email address will not be published. Required fields are marked *