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

Only allow WePay on hosteD

This commit is contained in:
David Bomba 2021-06-21 07:41:49 +10:00
parent d43984385a
commit 33e6576e26

View File

@ -1,6 +1,7 @@
<?php
use App\Models\Gateway;
use App\Utils\Ninja;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
@ -14,7 +15,7 @@ class ActivateWePay extends Migration
*/
public function up()
{
if(Gateway::count() >=1)
if(Gateway::count() >=1 && Ninja::isHosted())
Gateway::whereIn('id', [49])->update(['visible' => true]);
}