I’ve seen these plugins, and I’m using one of the same kind (https://www.ads-software.com/plugins/user-role-editor/). I did a var_dump of the role in question which returns these permissions:
object(WP_Role)#9440 (2) { [“name”]=> string(10) “dc_manager” [“capabilities”]=> array(22) { [“assign_product_terms”]=> bool(true) [“delete_posts”]=> bool(true) [“delete_product”]=> bool(true) [“delete_products”]=> bool(true) [“delete_published_products”]=> bool(true) [“delete_published_shop_coupons”]=> bool(true) [“delete_shop_coupon”]=> bool(true) [“delete_shop_coupons”]=> bool(true) [“edit_posts”]=> bool(true) [“edit_product”]=> bool(true) [“edit_products”]=> bool(true) [“edit_published_products”]=> bool(true) [“edit_published_shop_coupons”]=> bool(true) [“edit_shop_coupon”]=> bool(true) [“edit_shop_coupons”]=> bool(true) [“manage_product”]=> bool(true) [“manage_product_terms”]=> bool(true) [“publish_shop_coupons”]=> bool(true) [“read”]=> bool(true) [“read_product”]=> bool(true) [“read_shop_coupon”]=> bool(true) [“upload_files”]=> bool(true) } }
There is no permission for the user to see the orders, they can only edit the products normally. But this is not the case, there is the “Orders” tab and the page is accessible. Isn’t there a bug in Woocommerce?