[X] I have carried out troubleshooting steps and I believe I have found a bug.
[X] I have searched for similar bugs in both open and closed issues and cannot find a duplicate.
Describe the bug
The Leaderboards analytics data does not show up with the view _woocommerce_reports role capability.
Expected behavior
The Leaderboard data should be visible when the view_woocommerce_reports capability is enabled.
Actual behavior
When the manage_woocommerce capability is disabled, and the view_woocommerce_reports capability is enabled, the Leaderboard data does not display under Analytics > Overview > Leaderboards.
Prerequisites
Describe the bug
The Leaderboards analytics data does not show up with the
view _woocommerce_reports
role capability.Expected behavior
The Leaderboard data should be visible when the
view_woocommerce_reports
capability is enabled.Actual behavior
When the
manage_woocommerce
capability is disabled, and theview_woocommerce_reports
capability is enabled, the Leaderboard data does not display under Analytics > Overview > Leaderboards.Steps to reproduce
manage_woocommerce
capability and keep theview_woocommerce_reports
capability enabled.WordPress Environment
Tested with: WordPress version 6.2.2 WooCommerce version 7.9.0
Isolating the problem