mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Adjustments for client documents with private documents disabled
This commit is contained in:
parent
4a8f622fea
commit
8ae792e5cc
@ -118,11 +118,8 @@ class DocumentsTable extends Component
|
||||
|
||||
protected function documents()
|
||||
{
|
||||
return Document::query()
|
||||
->where('is_public', true)
|
||||
->whereHasMorph('documentable', [Client::class], function ($query) {
|
||||
$query->where('client_id', $this->client->id);
|
||||
});
|
||||
return $this->client->documents()
|
||||
->where('is_public', true);
|
||||
}
|
||||
|
||||
protected function credits()
|
||||
|
Loading…
x
Reference in New Issue
Block a user