admin管理员组

文章数量:1335647

We are making an application that can make an order from the mobile for Woocommerce API, when I used a loggedin user with token for validate the authentication, its showing error:

Sorry, you cannot view this resource.

But when I am using Administrator, its works. How I can make an other for regular user (non-admin)?

We are making an application that can make an order from the mobile for Woocommerce API, when I used a loggedin user with token for validate the authentication, its showing error:

Sorry, you cannot view this resource.

But when I am using Administrator, its works. How I can make an other for regular user (non-admin)?

Share Improve this question asked Jun 5, 2020 at 4:47 Diep TangDiep Tang 113 bronze badges 1
  • Hi, welcome to WordPress Development. As a rule, the community considers questions about third-party plugins (such as woocommerce) off-topic so you might notice some down-votes and answers may be slow if they come at all. Have you tried asking the plugin author? You can find out what questions are a good fit here. – Matthew Brown aka Lord Matt Commented Jun 6, 2020 at 15:14
Add a comment  | 

1 Answer 1

Reset to default 0

I found our my solution by customize "woocommerce_rest_check_permissions"

本文标签: Woocommerce REST API allow normal users make an order