How to hide default list view dashlet based on user roles in sugar crm?

272 Views Asked by At

How to hide default list view dashlet based on user roles in sugar crm ? OR How can i restrist user from adding list view dashlet based on user role ?

1

There are 1 best solutions below

0
On

Disclaimer: I have SuiteCRM 7.10.7, might not apply to newer, and this change is not upgrade safe.

You could modify getDashlets function in DashletDialog include/MySugar/DashletsDialog/DashletsDialog.php

It has the loop which loads in all dashlets to choose. You could put some limitations in there (get $current_user groups, check if they're ok and if particular dashlet should(n't) be allowed for them).