1

What is the best approach to hide general ui options from certain desk users with lower permission roles? I would for example like to block the create workspace feature (and hide the button) for a certain user role: enter image description here

Ideally I would like to also hide certain options from the following pane for certain user roles.

enter image description here

What would be the best approach for this. I am thinking of writing some javascript code to manipulate the dom here, but I am wondering what the best way would be to inject something like this and if it is possible to selectively inject that code in frappe framework via a custom app.

Michael de Borst
  • 302
  • 2
  • 5
  • 16
  • I think you need create custom app and override the some file, I add some feature to the ERPNext reporting section by this way but sill I have issue to override js file, remember any changes in original files will be lost by update. – Nazari Mar 02 '22 at 05:16

1 Answers1

0

You can change this using the navbar settings present in v13 and above. Search for navbar settings using the awesome search bar :) enter image description here