Removing the Tools menu item

Hi,

I am trying to figure out how I could remove the “Tools” item in the main menu.
When I click on it, I can reach the “Emails Template” menu item which I didn’t see how to de-activate it…

Is there a way to exclude it?
I am using the revolution pro theme, tried with myField module but without success…

Thanks a lot for your help

Finally I found a workaround.
I edited the \htdocs\custom\revolutionpro\core\menus\standard\versions\12-0-0.php file and replaced the enabled property assignment by 0:

// Tools
$tmpentry = array(
‘enabled’=>1,
‘perms’=>1,
‘module’=>’’
);
$menu_arr[] = array(
‘name’ => ‘Tools’,
‘link’ => ‘/core/tools.php?mainmenu=tools&leftmenu=’,
‘title’ => “Tools”,
‘level’ => 0,
‘enabled’ => 0,/$showmode = isVisibleToUserType($type_user, $tmpentry, $listofmodulesforexternal),/

Hi,
The easier way is to go to Home->Menu->Menu editor and then remove tools menu from there

This is what I tried before, but it seems the Revolution Pro theme has broken this possibility. I couldn’t do it by this way.

Then you should ask the developer of that module.

One simple way is to insert $user->admin into database=>_menu=>perms for rawid=18316 so that ‘Tools’ from top-menu gets hidden from users other than admin.
Please note, this will only hide ‘Tools’ from menu, but still direct link will be accessible. For removing access, you may need to add the following code to appropriate pages/sections (Ex: htdocs/core/tools.php):

if (!$user->admin) {
accessforbidden();
}

Hello afiffidaali, The Tools menu isn’t listed. Is there another option? I’d rather not change core code. My install is on Unraid.

Using 22.0.1 fresh install - Tools Menu visible and active on all users, even those with only shipping permissions
Has anyone found a fix fir this?

I don’t remember where, but I seem to remember that when I first installed and configured Dolibarr, then I could choose between

  1. greying out menu items when no permissions for it
  2. hiding menu items when no permissions for it

Which one are you using?

Tested both hiding items and greying when no permission. These features work fine for other menu items. But the Tools menu remains visible. And reveals the left menu as well.

Could you post a picture?

I think you should file a feature request at Dolibarrs GitHub page

Good Idea,
Also want to remove financial info such as purchase price from most users. Only those with permission should see this sensitive data.

Can they see the purchase order?

Did you enable advanced permissions?

Yes, Proposals, Sales Orders and Purchase Orders are visible on the left menu and they are functional.
There’s mention about Advanced Permissions under Users and User Groups permissions tab. However the Advanced Permissions modules in not included in the standard install.
Looking at Dolistore I see Advanced Permissions is only supported through V16 while I am on V22

To confirm - they can see the Purchase Order under Commerce in the left menu. But purchase Order is not allowed for that user/group it is greyed out.
When goods arrive and this user attempts to add a new Reception, there’s no place to add it. System says it is added by the Purchase Order.

Hi @HarveyM
Advanced Permissions is not a module, they can be enabled from Home->Setup->Security

That item has been checked all along. Thought there might be more settings than just on/off.

Maybe I can edit the code to make Tools admin only? Which files should I move to custom folder for this?