1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00

Prevent multiple gateways w/tokens

This commit is contained in:
Hillel Coren 2018-05-08 17:48:07 +03:00
parent fd279bd50f
commit d0ad4d21c7

View File

@ -907,7 +907,7 @@ class Account extends Eloquent
$available = true;
foreach ($gatewayTypes as $type) {
if ($type != GATEWAY_TYPE_TOKEN && $paymentDriver->handles($type)) {
if ($paymentDriver->handles($type)) {
$available = false;
break;
}