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:
parent
d43984385a
commit
33e6576e26
@ -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]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user