We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7546799 commit 0721ce5Copy full SHA for 0721ce5
admin/includes/WC_Integration_TReport.php
@@ -82,7 +82,7 @@ public function admin_options() {
82
* @return arr Modified reports
83
*/
84
public static function add_reports( $reports ) {
85
- if ( current_user_can( 'manage_options' ) ) {
+ if ( current_user_can( 'manage_woocommerce' ) ) {
86
//get_option of WC_settings class not work with static method required for the reports part
87
$taxonomies = get_option( 'woocommerce_taxonomy-report_settings', null );
88
if ( isset( $taxonomies [ 'selected' ] ) ) {
0 commit comments