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;
}
}