Skip to content

Commit b595774

Browse files
author
Leonid Poluianov
committed
MC-32201: Reorder functionality
1 parent faced71 commit b595774

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Sales/Model/Reorder/Reorder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function execute(string $orderNumber, string $storeId): Data\ReorderOutpu
125125
$this->errors = [];
126126

127127
$cart = $this->customerCartProvider->resolve($customerId);
128-
if (!$this->reorderHelper->canReorder($order->getId())) {
128+
if (!$this->reorderHelper->isAllowed($order->getStore())) {
129129
$this->addError((string)__('Reorders are not allowed.'), self::ERROR_REORDER_NOT_AVAILABLE);
130130
return $this->prepareOutput($cart);
131131
}

0 commit comments

Comments
 (0)