mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fix for client portal displaying entire companies invoices
This commit is contained in:
parent
dda0df6b0f
commit
19f2475fb1
@ -30,6 +30,7 @@ class InvoicesTable extends Component
|
||||
|
||||
public function render()
|
||||
{
|
||||
|
||||
$query = Invoice::query()
|
||||
->orderBy($this->sort_field, $this->sort_asc ? 'asc' : 'desc');
|
||||
|
||||
@ -48,7 +49,7 @@ class InvoicesTable extends Component
|
||||
}
|
||||
|
||||
$query = $query
|
||||
->where('company_id', auth('contact')->user()->company->id)
|
||||
->where('client_id', auth('contact')->user()->client->id)
|
||||
->paginate($this->per_page);
|
||||
|
||||
return render('components.livewire.invoices-table', [
|
||||
|
Loading…
Reference in New Issue
Block a user