Skip to content

Commit

Permalink
fx
Browse files Browse the repository at this point in the history
  • Loading branch information
Cannonb4ll committed Nov 17, 2023
1 parent d407d0a commit dff1bf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Livewire/Item/Comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public function render()
{
$this->comments = $this->item
->comments()
->with('user:id,name,email')
->withWhereHas('user:id,name,email')
->orderByRaw('COALESCE(parent_id, id), parent_id IS NOT NULL, id')
->when(!auth()->user()?->hasAdminAccess(), fn ($query) => $query->where('private', false))
->get()
Expand Down

0 comments on commit dff1bf0

Please sign in to comment.