CiviContribute Dashboard #chart_Layout does not respect Financial Type ACL
Overview
When a user is assigned financial type ACL, the chart (#chart_layout) on the CiviContribute Dashboard totals all financial types, not just the financial type/s the user has add/view permissions.
The table (#table_layout) does respect the financial type ACL when determining the totals.
Reproduction steps
- User is assigned permissions:
- CiviCRM: add contributions of type XXX
- CiviCRM: view contributions of type XXX
- Go to CiviContribute Dashboard
Current behaviour
/civicrm/contribute?reset=1#chart_layout
/civicrm/contribute?reset=1#table_layout
Expected behaviour
Chart totals should be total of financial types the user has view access to
Environment information
- CiviCRM: 5.46.2
- PHP: 7.3.27
- CMS: Drupal 7.88
- Database: MySQL 5.7.33
- Web Server: Apache 2.4.46
- reCAPTCHA: Version 5.40.2