csv import suite add custom permission for accessing the csv file via url
Using the product csv import suite:
The recent vs. gives us the ability to access the csv product download file via a url.
This opens the door to allowing 3rd party integration, but there is a problem.
Right now you have to have admin permission to access the export page.
* you have to have the permission - manage_woocommerce
Change this permission to the proper one - view_woocommerce_reports
This is totally backwards requiring manage permissions in order to view the csv file when we already have the proper permission available in view_woocommerce_reports
There is a filter for this woocommerce_csv_product_role