Merge pull request #33351 from akhilnarang/fix-dashboard-chart-permission-query
fix(dashboard_chart): check for `Group By` chart type as well in permission query
This commit is contained in:
commit
6c47ed2fa7
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ def get_permission_query_conditions(user):
|
|||
or `tabDashboard Chart`.`module` is NULL""".format(allowed_modules=",".join(allowed_modules))
|
||||
|
||||
return f"""
|
||||
((`tabDashboard Chart`.`chart_type` in ('Count', 'Sum', 'Average')
|
||||
((`tabDashboard Chart`.`chart_type` in ('Count', 'Sum', 'Average', 'Group By')
|
||||
and {doctype_condition})
|
||||
or
|
||||
(`tabDashboard Chart`.`chart_type` = 'Report'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue