mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-23 03:34:22 -05:00
update: allow torrent moderators to use sql search
This commit is contained in:
@@ -423,7 +423,7 @@ class TorrentSearch extends Component
|
||||
$this->reset('sortField');
|
||||
}
|
||||
|
||||
$isSqlAllowed = (($user->group->is_modo || $user->group->is_editor) && $this->driver === 'sql') || $this->description || $this->mediainfo;
|
||||
$isSqlAllowed = (($user->group->is_modo || $user->group->is_torrent_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'])
|
||||
@@ -524,7 +524,7 @@ class TorrentSearch extends Component
|
||||
$this->reset('sortField');
|
||||
}
|
||||
|
||||
$isSqlAllowed = (($user->group->is_modo || $user->group->is_editor) && $this->driver === 'sql') || $this->description || $this->mediainfo;
|
||||
$isSqlAllowed = (($user->group->is_modo || $user->group->is_torrent_modo || $user->group->is_editor) && $this->driver === 'sql') || $this->description || $this->mediainfo;
|
||||
|
||||
$groupQuery = Torrent::query()
|
||||
->select('tmdb')
|
||||
|
||||
Reference in New Issue
Block a user