mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-11-03 16:07:30 -05:00
* minor fix for payment notifications * styleci * Limit Self updating to self hosters only : * Fixes for designs * Minor fixes for self-update
28 lines
613 B
PHP
28 lines
613 B
PHP
<?php
|
|
/**
|
|
* Invoice Ninja (https://invoiceninja.com)
|
|
*
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
*
|
|
* @copyright Copyright (c) 2020. Invoice Ninja LLC (https://invoiceninja.com)
|
|
*
|
|
* @license https://opensource.org/licenses/AAL
|
|
*/
|
|
|
|
namespace App\Utils\Traits;
|
|
|
|
use App\Utils\Ninja;
|
|
use App\Utils\SystemHealth;
|
|
|
|
trait AppSetup
|
|
{
|
|
public function checkAppSetup()
|
|
{
|
|
if (Ninja::isNinja()) { // Is this the invoice ninja production system?
|
|
return true;
|
|
}
|
|
|
|
return SystemHealth::check()['system_health']; // Do the system tests pass?
|
|
}
|
|
}
|