mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 02:24:34 -04: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
|
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…
x
Reference in New Issue
Block a user