antoniost2017
Forum Replies Created
-
Forum: Plugins
In reply to: [User Role Editor] WooCommerce capabilities don’t work properlyI’m using the current version, v2.
I’m just doing a basic GET on /wp-json/wc/v2/products (http://woocommerce.github.io/woocommerce-rest-api-docs/?javascript#list-all-products)
When I only enable read_products I can’t access to any WooCommerce products; and when I only enable read_private_products I can access to all the products.
I was expecting that when I do the same API request with read_private_products disabled the only products I get are the publish ones. Also, woocommerce/includes/api/legacy/v3/class-wc-api-resource.php, check_permission() method, from line #462 just talk about read_private_postsThanks !
Forum: Plugins
In reply to: [User Role Editor] WooCommerce capabilities don’t work properlyHi Vladimir,
Thanks for this reply!
I’m not sure to get what it is needed to do… Right now, my new User Role hasn’t the read_private_posts enabled on URE, so I don’t know why it can get all the porducts in the store. Line #462 don’t refer to read_products capacibily for instance.
Can you clarify this please ? 🙂
Thanks!
Forum: Plugins
In reply to: [User Role Editor] WooCommerce capabilities don’t work properlyHi Vladimir,
No, I’ve just enabled either only read_products or read_private_products. As I said, with only read_private_product, I’m able to get all products.
I mean a ‘ressource access’ via the WooCommerce REST API.
Thanks