customization by roles view mega menu module Emails - View Emails in SugarCrm 10.0

I ran into a problem that it is necessary to remove the link from the mega menu module Emails - View Emails ONLY for the sales role, but to do it not by the methods of the role manager, but customized. By commenting out the array here: custom / modules / Emails / clients / base / menus / header / header.php it deletes FOR ALL users this link, but you need everything left for the admins. Nowhere did I find how to do this either in the file header.php or in header.js (did not find it anywhere, neither in the custom folder nor in the module Emails). Do you know how to deal with this task in my case? I would be very grateful!

Parents Reply Children