mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-11-24 16:05:28 -05:00
* Fixes for white label * Include Laravel Horizon * Add Account ID to user table AND ensure a user cannot create an invoice across companies * restart horison after an update * Fixes for app setup * Minor fixes * Fixes for client routes * Fixes for tests * minor fixes
30 lines
650 B
PHP
30 lines
650 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;
|
|
}
|
|
|
|
\Log::error(SystemHealth::check());
|
|
|
|
return SystemHealth::check()['system_health']; // Do the system tests pass?
|
|
}
|
|
}
|