1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 05:32:39 +01:00
invoiceninja/app/Http/Requests/ClientPortal/RecurringInvoices/RequestCancellationRequest.php

22 lines
460 B
PHP
Raw Normal View History

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