Hide Sidebar Menu of ACLRoles module

Hello All,
I want to hide some menus of module Role Management (ACLRoles).
I just copy and paste the file from suitecrm\modules\ACLRoles\Menu.php to suitecrm\custom\modules\ACLRoles\Menu.php.

I comment some menus, but it is not working like other modules. Anybody know the root-cause and work around for this?

Thanks in advance.

Ok. I got the solution for this.
I trace the calling function of Menu.php of any module. I got a file as suitecrm\include\MVC\View\SugarView.php.

As per the code, SuiteCRM pickup suitecrm\module\<Your Module>\Menu.php first, then it pickup suitecrm\custom\modules\<Your Module>\Ext\Menus\menu.ext.php.

So I move to suitecrm\custom\Extension\modules\ACLRoles\Ext\Menus\Menu.php and make the required changes in this file.
=> Admin -> Repair -> Quick Repair & Rebuild.

Now I got the generated extension file on the path: suitecrm\custom\modules/ACLRoles\Ext\Menus\menu.ext.php.

Done.

1 Like