Skip to content

Commit

Permalink
Check for payment status on downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Jun 3, 2024
1 parent 0218726 commit 6460ffe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Client/Html/Account/Download/Standard.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ protected function checkAccess( string $id = null ) : bool

$search = $manager->filter();
$expr = array(
$search->compare( '>=', 'order.statuspayment', \Aimeos\MShop\Order\Item\Base::PAY_RECEIVED ),
$search->compare( '==', 'order.customerid', $customerId ),
$search->compare( '==', 'order.product.attribute.id', $id ),
);
Expand Down

0 comments on commit 6460ffe

Please sign in to comment.