How to hide Translation link in setup (Only visible to Super Admin)

How to hide Translation link in setup (Only visible to Super Admin and not to other admins.)

I am not sure if you can do it in the permissions tab for users, in the code itself it is a pretty easy change.
First figure out which id your Super Admin has, log into the Super Admin account, go to the Profile and in the URL you can see the id. Like this:

In this case the id is 1. So you go into the dolibarr folder that contains all the code to the webpage and go to the following path. “PathToDolibarrFolder/htdocs/admin/translation.php”

Somewhere at the top of the code you should find this line:

You just change the line to this:

image

Be aware that the number 1 is the id. So if your Super Admin account had the id 2, then you would take the line $user->id != 2.
This is the fastest way to achieve what you want, but not the most beautiful one.

Hello,

You can do it with myField : personalization of fields and of their access

Dear Dokik, Ksar,

Thanks a ton for the solution. Yes, that works.

Best Regards,
yesbee