Update app/reflexes/products_reflex.rb

11068: remove overdefensive auth check

Co-authored-by: Maikel <maikel@email.org.au>
This commit is contained in:
Ahmed Ejaz
2023-12-22 02:24:28 +05:00
committed by GitHub
parent 24fd75a85d
commit dc78fa843a

View File

@@ -62,7 +62,6 @@ class ProductsReflex < ApplicationReflex
def delete_variant
id = current_id_from_element(element)
authorize! :delete, Spree::Variant
variant = variant_scope.find(id)
authorize! :delete, variant