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:
parent
6a21da8aba
commit
9623dba2c8
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user