You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 13, 2021. It is now read-only.
isn't it better if i can search only the products/variants that belongs to the store which the order belongs to ?
i patched that. i add data-store-id to the body, send that in the ajax-request
and then scope it
Spree::Api::V1::VariantsController.class_eval do
def scope
#...
variants.where(store_id: params[:store_id]).accessible_by(current_ability, :read)
anybody know a better solution?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
isn't it better if i can search only the products/variants that belongs to the store which the order belongs to ?
i patched that. i add
data-store-id
to the body, send that in the ajax-requestand then scope it
anybody know a better solution?
The text was updated successfully, but these errors were encountered: