surefoot
surefoot

Reputation: 51

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.

Upvotes: 3

Views: 730

Answers (1)

Abdur Rehman
Abdur Rehman

Reputation: 3293

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.

Upvotes: 1

Related Questions