fix: show only public charts and cards to user
This commit is contained in:
parent
65186bb0ed
commit
5c480dbab1
1 changed files with 2 additions and 0 deletions
|
|
@ -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'
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue