Skip to content

Commit 0721ce5

Browse files
committed
fix #4
1 parent 7546799 commit 0721ce5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

admin/includes/WC_Integration_TReport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function admin_options() {
8282
* @return arr Modified reports
8383
*/
8484
public static function add_reports( $reports ) {
85-
if ( current_user_can( 'manage_options' ) ) {
85+
if ( current_user_can( 'manage_woocommerce' ) ) {
8686
//get_option of WC_settings class not work with static method required for the reports part
8787
$taxonomies = get_option( 'woocommerce_taxonomy-report_settings', null );
8888
if ( isset( $taxonomies [ 'selected' ] ) ) {

0 commit comments

Comments
 (0)