User role to edit orders only
-
Right now it is impossible to create a user role that is allowed to edit orders only (but not to edit anything else in WordPress or WooCommerce).
Reason being that inside the PageController.php / function verify_edit_permission / line 70 there is a check for current_user_can( ‘manage_woocommerce’ ).
So “order managers” have to be able to manage all of WooCommerce to simply manage orders…
Please change that line to current_user_can( ‘manage_woocommerce_orders’ ) or, even better, ship Woocommerce with a default role “Orders Manager”.
Thanks,
Michael
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.