Plugin should not use "manage_woocommerce" capability
-
I have a non traditional use case.
We have users who do not have the “manage_woocommerce” capability, but do have “edit_shop_orders”. They can make and edit orders, but cannot manage any woocommerce settings.
Your plugin relies on the “manage_woocommerce” capability to allow users to print orders, but it really should rely on the “edit_shop_orders” capability instead. If users can create and edit orders, they should be able to print invoices even if they aren’t permitted to change woocommerce settings.
The solution would be to change the capability specified in the current_user_can() function on line 184 and 263 of class-wcdn-print.php
Alternatively, a custom capability could work.
The topic ‘Plugin should not use "manage_woocommerce" capability’ is closed to new replies.