mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-30 21:44:34 -04:00
BUGFIX - Show recurring invoice
https://forum.invoiceninja.com/t/view-recurring-invoice-you-are-not-authorized-to-view-or-perform-this-action/7906
This commit is contained in:
parent
1e21fcc47d
commit
5cd4db6a62
@ -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