Support » Plugin: WooCommerce » REST API reject POST, even with RW permissions

  • Resolved looknear

    (@looknear)


    1. KEYS are good. double checked and tested. with Read+Write permissions. V3, all latest wordpress and woo versions.
    2. initiate REST call with POST to create a new product, response with “Allow”: “GET” header, with error woocommerce_rest_cannot_create

    Nothing was changed in the site or the calling API system.
    issue started TWO DAYS AGO. maybe some woocommerce update?

    please advise.

    • This topic was modified 7 months ago by looknear.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter looknear

    (@looknear)

    It look like a bug in WC in
    wc_rest_check_post_permissions
    or in the inner function:
    current_user_can

    on $context = ‘create’ call – this function return FALSE.
    (tested with no other plugins installed. so no-one is registered to woocommerce_rest_check_permissions filter)

    This is a major bug. Can someone look into it?

    Thread Starter looknear

    (@looknear)

    You can close this issue…
    for some reason the users did not had “publish_posts” capabilities…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘REST API reject POST, even with RW permissions’ is closed to new replies.