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:
parent
fd279bd50f
commit
d0ad4d21c7
@ -907,7 +907,7 @@ class Account extends Eloquent
|
|||||||
$available = true;
|
$available = true;
|
||||||
|
|
||||||
foreach ($gatewayTypes as $type) {
|
foreach ($gatewayTypes as $type) {
|
||||||
if ($type != GATEWAY_TYPE_TOKEN && $paymentDriver->handles($type)) {
|
if ($paymentDriver->handles($type)) {
|
||||||
$available = false;
|
$available = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user