fix(Notifications): user check for events (#8647)

This commit is contained in:
Prssanna Desai 2019-10-22 16:33:44 +05:30 committed by Chinmay Pai
parent 497c5faee2
commit 3d3bd1cbcb

View file

@ -53,7 +53,8 @@ frappe.ui.Notifications = class Notifications {
fields: ['name', 'subject', 'starts_on'],
filters: [
{'starts_on': ['between', today, tomorrow]},
{'ends_on': ['>=', frappe.datetime.now_datetime()]}
{'ends_on': ['>=', frappe.datetime.now_datetime()]},
{'owner': frappe.session.user}
]
}).then(event_list => {
this.render_events_html(event_list);