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:21:53 +05:00
committed by GitHub
parent 0290697fb7
commit 24fd75a85d

View File

@@ -48,7 +48,6 @@ class ProductsReflex < ApplicationReflex
def delete_product
id = current_id_from_element(element)
authorize! :delete, Spree::Product
product = product_finder(id).find_product
authorize! :delete, product