Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @questionabout,

    Thank you for contacting us. The capability required for that function is “manage_woocommerce”.

    I believe it appears as shop_manager. Is your shop manager not able to click the icon in the order details in the current version?

    Kind regards,

    Thread Starter questionabout

    (@questionabout)

    Yes. They can’t click on the icon. If I allow manage_woocommerce then they can change WooCommerce settings which I don’t really want. Wanted to see if there is another way to do it without giving too much access.

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @questionabout

    Thank you for clarifying. I will review the code for that feature and get back to you on whether or not that’s possible.

    Kind regards

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @questionabout,

    I took a look at the code and restricting access to the transaction view would require some additions to be made to the plugin. Currently the plugin relies on the roles provided by WooCommerce.

    Look at the WooCommerce capabilities, I see several that look promising like the read/write access to orders. That way a shop manager could perform those functions but not access the settings. I will need to test that further.

    I don’t have time to include something like that in the next release coming out in 2 days but I will keep you updated.

    Kind Regards,

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @questionabout,

    I like your suggestion and will be including a capability check of edit_shop_orders to the order actions. That way, you don’t have to grant manage_woocommerce to your shop manager.

    That will be in the next release coming out this afternoon.

    Kind Regards,

    Thread Starter questionabout

    (@questionabout)

    Superawesome! Thanks!

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @questionabout,

    Version 3.2.10 released.

    Kind Regards,

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Capabilities? User Roles?’ is closed to new replies.