Why in the world would you not include other roles for reports?
-
Right now one must be logged in as an administrator to generate/download reports. WooCommerce’s shop manager role should be included. Maybe Yoast’s SEO manager role should have access also. I’m sure there are other popular plugins with custom roles that should be included. So, we hacked the plugin. Due to the frequency of this plugin being updated, we may just rename it and do our own thing.
More info:
jem-exporter.php and JEMEXP_Order.php both use the WordPress current_user_can function to specifically limit generation of the reports to admins, even though Shop Manager can see the form. Changing “administrator” to “view_woocommerce_reports” made the report generation work for the Shop Manager role.
- The topic ‘Why in the world would you not include other roles for reports?’ is closed to new replies.