How to display red box alert on custom box icon for specific user?

I have got the code for red box alert on custom app icon.But it will be shown to all user.

from future import unicode_literals
import frappe

def get_notification_config():
return { “for_doctype”:
{
“Komus”: {“docstatus”: 0},
“MTS Mobiles”: {“docstatus”: 0},
“Visualizations”: {“signed”: 0},
}
}

But how to display this for specific user ?

you can access current user via frappe.session.user

1 Like

Sir can i see one example for this

@rmehta You know any solution for this? Any help will be appreciated