最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Woocommerce REST API allow normal users make an order

programmeradmin0浏览0评论

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"

发布评论

评论列表(0)

  1. 暂无评论