1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-05 18:52:44 +01:00

fix for showinvoicerequest

This commit is contained in:
David Bomba 2020-12-01 21:22:48 +11:00
parent 6a21da8aba
commit 9623dba2c8

View File

@ -22,6 +22,6 @@ class ShowInvoiceRequest extends Request
*/
public function authorize() : bool
{
return auth('contact')->user()->client->id === $this->invoice->client_id;
return auth('contact')->user()->client->id == $this->invoice->client_id;
}
}