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…
Reference in New Issue