mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 00:24:38 -04:00
Merge pull request #7606 from yois615/patch-3
BUGFIX - Show recurring invoice
This commit is contained in:
commit
03b9bb1575
@ -18,7 +18,7 @@ class ShowRecurringInvoiceRequest extends Request
|
|||||||
{
|
{
|
||||||
public function authorize() : bool
|
public function authorize() : bool
|
||||||
{
|
{
|
||||||
return auth()->guard('contact')->user()->client->id === $this->recurring_invoice->client_id
|
return auth()->guard('contact')->user()->client->id == $this->recurring_invoice->client_id
|
||||||
&& auth()->guard('contact')->user()->company->enabled_modules & PortalComposer::MODULE_RECURRING_INVOICES;
|
&& auth()->guard('contact')->user()->company->enabled_modules & PortalComposer::MODULE_RECURRING_INVOICES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user