Skip to content

Commit

Permalink
Fixes for client documents query
Browse files Browse the repository at this point in the history
  • Loading branch information
turbo124 committed Jan 19, 2025
1 parent eb574f3 commit 8de86a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Livewire/DocumentsTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ protected function documents()

return $client->documents()
->where('is_public', true)
->orWhere(function ($query){
->orWhere(function ($query) use ($client) {

$query->whereHasMorph('documentable', [Company::class], function ($q) use ($client) {
$q->where('is_public', true)->where('company_id', $client->company_id);
Expand Down

0 comments on commit 8de86a2

Please sign in to comment.