Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide modules from current user in the navigation bar in Suitecrm

I am right now using LDAP authentication for adding user in Suitecrm. In normal course when the user is added to the system we can assign him roles during creation and also hide some modules which are enabled for him, in his portal .

With LDAP authentication I have been able to assign user to a role through code when he first logins but hiding modules for those users by code or otherwise has not been possible

Can anyone guide me as to how to hide modules from the current user which otherwise show in the navigation bar? Thanks in advance.

like image 845
surefoot Avatar asked Dec 18 '25 22:12

surefoot


1 Answers

There is upgrade safe manner to do it via smarty file.

  1. Check your active theme and copy the file from themes/<active_theme>/tpls/_headerModuleList.tpl to custom/themes/<active_theme>/tpls/_headerModuleList.tpl (if custom directory doesn't exist then create it)

  2. Search for groupTabs, you will see foreach loops for processing it for different views. Hopefully, you can add your code there to do anything.

like image 150
Abdur Rehman Avatar answered Dec 24 '25 10:12

Abdur Rehman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!