mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Updates / copyright
This commit is contained in:
parent
20573b362c
commit
b81eb57744
@ -1,4 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* Invoice Ninja (https://invoiceninja.com).
|
||||||
|
*
|
||||||
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
||||||
|
*
|
||||||
|
* @copyright Copyright (c) 2024. Invoice Ninja LLC (https://invoiceninja.com)
|
||||||
|
*
|
||||||
|
* @license https://www.elastic.co/licensing/elastic-license
|
||||||
|
*/
|
||||||
|
|
||||||
namespace App\DataProviders;
|
namespace App\DataProviders;
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ class ContactRegister
|
|||||||
// As a fallback for self-hosted, it will use default company in the system
|
// As a fallback for self-hosted, it will use default company in the system
|
||||||
// if key isn't provided in the url.
|
// if key isn't provided in the url.
|
||||||
if (! $request->route()->parameter('company_key') && Ninja::isSelfHost()) {
|
if (! $request->route()->parameter('company_key') && Ninja::isSelfHost()) {
|
||||||
$company = Account::query()->first()->default_company;
|
$company = Account::query()->first()->default_company ?? Account::query()->first()->companies->first();
|
||||||
|
|
||||||
if (! $company->client_can_register) {
|
if (! $company->client_can_register) {
|
||||||
abort(400, 'Registration disabled');
|
abort(400, 'Registration disabled');
|
||||||
|
@ -1,4 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* Invoice Ninja (https://invoiceninja.com).
|
||||||
|
*
|
||||||
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
||||||
|
*
|
||||||
|
* @copyright Copyright (c) 2024. Invoice Ninja LLC (https://invoiceninja.com)
|
||||||
|
*
|
||||||
|
* @license https://www.elastic.co/licensing/elastic-license
|
||||||
|
*/
|
||||||
|
|
||||||
namespace App\Http\ViewComposers\Components\Rotessa;
|
namespace App\Http\ViewComposers\Components\Rotessa;
|
||||||
|
|
||||||
|
@ -1,4 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* Invoice Ninja (https://invoiceninja.com).
|
||||||
|
*
|
||||||
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
||||||
|
*
|
||||||
|
* @copyright Copyright (c) 2024. Invoice Ninja LLC (https://invoiceninja.com)
|
||||||
|
*
|
||||||
|
* @license https://www.elastic.co/licensing/elastic-license
|
||||||
|
*/
|
||||||
|
|
||||||
namespace App\Http\ViewComposers\Components\Rotessa;
|
namespace App\Http\ViewComposers\Components\Rotessa;
|
||||||
|
|
||||||
|
@ -1,4 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* Invoice Ninja (https://invoiceninja.com).
|
||||||
|
*
|
||||||
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
||||||
|
*
|
||||||
|
* @copyright Copyright (c) 2024. Invoice Ninja LLC (https://invoiceninja.com)
|
||||||
|
*
|
||||||
|
* @license https://www.elastic.co/licensing/elastic-license
|
||||||
|
*/
|
||||||
|
|
||||||
namespace App\Http\ViewComposers\Components\Rotessa;
|
namespace App\Http\ViewComposers\Components\Rotessa;
|
||||||
|
|
||||||
|
@ -1,4 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* Invoice Ninja (https://invoiceninja.com).
|
||||||
|
*
|
||||||
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
||||||
|
*
|
||||||
|
* @copyright Copyright (c) 2024. Invoice Ninja LLC (https://invoiceninja.com)
|
||||||
|
*
|
||||||
|
* @license https://www.elastic.co/licensing/elastic-license
|
||||||
|
*/
|
||||||
|
|
||||||
use Illuminate\Support\Facades\View;
|
use Illuminate\Support\Facades\View;
|
||||||
use App\DataProviders\CAProvinces;
|
use App\DataProviders\CAProvinces;
|
||||||
@ -9,7 +18,6 @@ View::composer(['*.rotessa.components.address','*.rotessa.components.banks.US.ba
|
|||||||
$view->with('states', $states);
|
$view->with('states', $states);
|
||||||
});
|
});
|
||||||
|
|
||||||
// CAProvinces View Composer
|
|
||||||
View::composer(['*.rotessa.components.address','*.rotessa.components.banks.CA.bank','*.rotessa.components.dropdowns.country.CA'], function ($view) {
|
View::composer(['*.rotessa.components.address','*.rotessa.components.banks.CA.bank','*.rotessa.components.dropdowns.country.CA'], function ($view) {
|
||||||
$provinces = CAProvinces::get();
|
$provinces = CAProvinces::get();
|
||||||
$view->with('provinces', $provinces);
|
$view->with('provinces', $provinces);
|
||||||
|
@ -33,7 +33,6 @@ class ComposerServiceProvider extends ServiceProvider
|
|||||||
$view->with('states', $states);
|
$view->with('states', $states);
|
||||||
});
|
});
|
||||||
|
|
||||||
// CAProvinces View Composer
|
|
||||||
view()->composer(['*.rotessa.components.address','*.rotessa.components.banks.CA.bank','*.rotessa.components.dropdowns.country.CA'], function ($view) {
|
view()->composer(['*.rotessa.components.address','*.rotessa.components.banks.CA.bank','*.rotessa.components.dropdowns.country.CA'], function ($view) {
|
||||||
$provinces = CAProvinces::get();
|
$provinces = CAProvinces::get();
|
||||||
$view->with('provinces', $provinces);
|
$view->with('provinces', $provinces);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user