How to hide this option ‘My Profile’ for specific user
https://frappeframework.com/docs/user/en/python-api/hooks#desk
Create a JS file in your custom app and include it inside app_include_js
in the hook.py
file.
and
Add below code in your js file with your conditions
$(document).ready( () => {
if(your specific user condition == true)
$('.navbar-nav .nav-item .dropdown-menu .dropdown-item[href="/app/user-profile"]').hide();
})
1 Like