fix for showinvoicerequest
This commit is contained in:
parent
6a21da8aba
commit
9623dba2c8
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue