mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Update app/reflexes/products_reflex.rb
11068: remove overdefensive auth check Co-authored-by: Maikel <maikel@email.org.au>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user