Skip to content

Commit

Permalink
Use the service instead
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeholder committed Sep 30, 2023
1 parent 25aff01 commit b2d5f6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/products/_edit.twig
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
redirect: '{cpEditUrl}'|hash,
action: 'commerce/products/duplicate-product'
}) %}
{% if product.canDelete(currentUser) %}
{% if canDelete(product) %}
{% set formActions = formActions|push({
action: 'commerce/products/delete-product',
confirm: 'Are you sure you want to delete this product?'|t('commerce'),
Expand Down

0 comments on commit b2d5f6d

Please sign in to comment.