Adjustments for client documents with private documents disabled

This commit is contained in:
David Bomba 2023-08-21 09:06:52 +10:00
parent 4a8f622fea
commit 8ae792e5cc

View File

@ -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()