spree-contrib / spree_multi_vendor

Spree marketplace extension. Create your own marketplace on top of Spree Commerce
https://spreecommerce.org/marketplace-ecommerce/
BSD 3-Clause "New" or "Revised" License
142 stars 135 forks source link

Fix: product image cancan rule, to avoid CanCan::Error #164

Closed brayvasq closed 3 years ago

brayvasq commented 3 years ago

Description

The cancan rule for image_permissions for vendors was changed and defined according the following documentation:

Related Issue

close #163

Motivation and Context

When we try to access to the product images endpoint in APIv1, using the token of the vendor associated to the product. We got a CanCan::Error.