1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Hide WePay from self hosters

This commit is contained in:
Hillel Coren 2018-04-12 22:50:34 +03:00
parent 8ff1ef9ed4
commit c85a3dc663

View File

@ -141,6 +141,10 @@ class Gateway extends Eloquent
$query->where('payment_library_id', '=', 1)
->whereIn('id', static::$preferred)
->whereIn('id', $accountGatewaysIds);
if (! Utils::isNinja()) {
$query->where('id', '!=', GATEWAY_WEPAY);
}
}
/**