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
1 Answer
Reset to default 0I found our my solution by customize "woocommerce_rest_check_permissions"