Jump to content

API key - resource permissions


Niecio

Recommended Posts

Hello,

Has anyone encountered a problem in granting resource permissions by configuring the API key? Some options are not active:

search - PUT, POST, DELETE

stock_availables - POST, DELETE

stock_movements -  PUT, POST, DELETE

stocks - PUT, POST, DELETE

supply_order_details - PUT, POST, DELETE

supply_order_histories - PUT, POST, DELETE

supply_order_receipt_histories - PUT, POST, DELETE

supply_order_states - PUT, POST, DELETE

supply_orders - PUT, POST, DELETE

warehouse_product_locations - PUT, POST, DELETE

warehouses - DELETE

Addition, screen in the attachment. All these permissions are needed to synchronize inventory levels with crm to the sales system.

If anyone knows what may be the cause, or how to solve the problem of giving permissions that are not active I will be very grateful for every tip.

Thank you in advance and best regards.

1591712779100.png

Link to comment
Share on other sites

  • 3 months later...
  • 3 years later...

Hi, i don't know what cause it but quick solve is to remove this strings from file classes/webservice/WebServiceRequest.php: 

, 'forbidden_method' => array('PUT', 'POST', 'DELETE')

, 'forbidden_method' => array('POST', 'DELETE')

'forbidden_method' => array('DELETE'))

image.thumb.png.e12ae1eb02f4235a4dd839186ff07f37.png

 

so it will look like this: 

image.thumb.png.ee6ed927cefc376f590948f5d255cb24.png

 

but the problem can be also related to this: 

https://www.prestashop.com/forums/topic/616367-function-mcrypt_encrypt-is-deprecated-in-classesrijndaelphp-on-line-51/

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...