mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-16 16:13:20 +01:00
22 lines
451 B
PHP
22 lines
451 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\ClientPortal\RecurringInvoices;
|
|
|
|
use App\Http\ViewComposers\PortalComposer;
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class RequestCancellationRequest extends FormRequest
|
|
{
|
|
public function authorize()
|
|
{
|
|
return auth('contact')->user()->company->enabled_modules & PortalComposer::MODULE_RECURRING_INVOICES;
|
|
}
|
|
|
|
public function rules()
|
|
{
|
|
return [
|
|
//
|
|
];
|
|
}
|
|
}
|