From c85a3dc6636c02d88e944f431cc3b6b637478c5f Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 12 Apr 2018 22:50:34 +0300 Subject: [PATCH] Hide WePay from self hosters --- app/Models/Gateway.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Models/Gateway.php b/app/Models/Gateway.php index 66609291b998..788061af661e 100644 --- a/app/Models/Gateway.php +++ b/app/Models/Gateway.php @@ -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); + } } /**