mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 05:32:39 +01:00
5fafbac36f
* Insert generic for client country if not set * Invoice fixes * fixes * Schema changes * Refactor Schema and implement fixes for testS * Use Dispatcher for system logs * Add TaxRateController * Update OpenAPI definitions for Tax Rates
31 lines
611 B
PHP
31 lines
611 B
PHP
<?php
|
|
/**
|
|
* Invoice Ninja (https://invoiceninja.com)
|
|
*
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
*
|
|
* @copyright Copyright (c) 2019. Invoice Ninja LLC (https://invoiceninja.com)
|
|
*
|
|
* @license https://opensource.org/licenses/AAL
|
|
*/
|
|
|
|
namespace App\Http\Requests\TaxRate;
|
|
|
|
use App\Http\Requests\Request;
|
|
use App\Models\TaxRate;
|
|
|
|
class CreateTaxRateRequest extends Request
|
|
{
|
|
/**
|
|
* Determine if the user is authorized to make this request.
|
|
*
|
|
* @return bool
|
|
*/
|
|
|
|
public function authorize() : bool
|
|
{
|
|
return auth()->user()->isAdmin();
|
|
}
|
|
|
|
|
|
} |