Support » Plugin: WooCommerce Print Invoice & Delivery Note » 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • hi there, thanks for the info. i’ve edited the code. could you please install 4.1.5 and tell me if it works now as you expect it to?

    Hey thanks for fixing this! It works great.

    I have users who can’t “manage_woocommerce” (that allows them to change settings, I don’t want them doing that) but they can “edit_shop_orders”. Before version 4.1.5 they could not print invoices and delivery notes, but now they can!


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plugin should not use "manage_woocommerce" capability’ is closed to new replies.