mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-05 18:52:44 +01:00
970c9bb87d
* Fixes for converting a quote to invoice * Fixes for deleting an invoice * Payment Terms CRUD * Payment Terms * Push PaymentTerms back into the DB * Payment Terms * Payment Terms * Create api docs for payment terms
30 lines
622 B
PHP
30 lines
622 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\Http\Requests\PaymentTerm;
|
|
|
|
use App\Http\Requests\Request;
|
|
use App\Models\PaymentTerm;
|
|
|
|
class CreatePaymentTermRequest extends Request
|
|
{
|
|
/**
|
|
* Determine if the user is authorized to make this request.
|
|
*
|
|
* @return bool
|
|
*/
|
|
|
|
public function authorize() : bool
|
|
{
|
|
return auth()->user()->isAdmin();
|
|
}
|
|
}
|