1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-15 07:33:04 +01:00
invoiceninja/app/Http/Requests/ClientPortal/RecurringInvoices/RequestCancellationRequest.php
2024-06-16 14:35:56 +10:00

25 lines
546 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()
{
auth()->guard('contact')->user()->loadMissing(['company']);
return (bool)(auth()->guard('contact')->user()->company->enabled_modules & PortalComposer::MODULE_RECURRING_INVOICES);
}
public function rules()
{
return [
//
];
}
}