Hi Robert,
It is still not working even though the API access for the vendor administrator has being enabled by the administrator.
I've tested my code by using the email and api key for both the administrator or the vendor administrator. But it is only working for the administrator and not the vendor administrator.
From the https://docs.cs-cart..._extending.html
public function privileges()
{
return array(
'create' => 'create_things',
'update' => 'edit_things',
'delete' => 'delete_things',
'index' => 'view_things'
);
}
public function privilegesCustomer()
{
return array(
'index' => true
);
}
To allow access of the API to customers, there is the privilegesCustomer function which can be set.
But for my case, I just want to enable it for vendors only. How do I do it?