Skip to content

Commit

Permalink
Merge pull request #4260 from Roardom/mediainfo-description-search
Browse files Browse the repository at this point in the history
(Fix) Mediainfo and description search
  • Loading branch information
HDVinnie authored Oct 21, 2024
2 parents c1c8288 + 9267dac commit d13b400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Livewire/TorrentSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ final public function torrents(): \Illuminate\Contracts\Pagination\LengthAwarePa
$this->reset('sortField');
}

$isSqlAllowed = ($user->group->is_modo || $user->group->is_editor) && $this->driver === 'sql';
$isSqlAllowed = (($user->group->is_modo || $user->group->is_editor) && $this->driver === 'sql') || $this->description || $this->mediainfo;

$eagerLoads = fn (Builder $query) => $query
->with(['user:id,username,group_id', 'user.group', 'category', 'type', 'resolution'])
Expand Down

0 comments on commit d13b400

Please sign in to comment.