Customer Dashboard

Hi
i need help for enable or disable customers dashboard for users

Try this
cur_frm.dashboard.frm.fields[0].df.hidden=1;
If you want to enable/disable for specific user then check user roles first
for e.g:
if(!(frappe.user.has_role(‘Employee’)))
{
cur_frm.dashboard.frm.fields[0].df.hidden=1;
}

i am new in Erpnext
can you give more details
where i can write this code

you can just go to customer doctype js file and use following lines of code

setup: function(frm){
frm.fields_dict[‘_form_dashboard’].collapse();
}
try and revert.