fix: show only public charts and cards to user

This commit is contained in:
prssanna 2020-04-30 22:29:17 +05:30
parent 65186bb0ed
commit 5c480dbab1

View file

@ -71,12 +71,14 @@ frappe.views.DashboardView = class DashboardView extends frappe.views.ListView {
{
chart_type: ['in', ['Count', 'Sum', 'Group By']],
document_type: this.doctype,
is_public: 1,
},
'charts'
),
() => this.fetch_dashboard_items('Number Card',
{
document_type: this.doctype,
is_public: 1,
},
'number_cards'
),