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
Spree_auth_devise currently decorates the Spree::ProductsController in a way that breaks the expected behavoir. The decorator does not use the active scope like the original method but instead it basically reimplements the active scope (not DRY). This causes unexpected behavoir when changing the products that the active scope returns (ie decorating it).
Additionally, there appears to be no difference in results between either version of the load_products method: in both cases 404 is returned when the product does not exist or the user is not allowed to see the product.
Imho the method should be either updated to use the active scope or removed entirely.
The text was updated successfully, but these errors were encountered:
Spree_auth_devise currently decorates the Spree::ProductsController in a way that breaks the expected behavoir. The decorator does not use the active scope like the original method but instead it basically reimplements the active scope (not DRY). This causes unexpected behavoir when changing the products that the active scope returns (ie decorating it).
Additionally, there appears to be no difference in results between either version of the load_products method: in both cases 404 is returned when the product does not exist or the user is not allowed to see the product.
Imho the method should be either updated to use the active scope or removed entirely.
The text was updated successfully, but these errors were encountered: