diff --git a/src/templates/products/_edit.twig b/src/templates/products/_edit.twig index f381279516..01632fd0cd 100644 --- a/src/templates/products/_edit.twig +++ b/src/templates/products/_edit.twig @@ -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'),