mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-23 19:50:40 -05:00
update: add a moderation opt in check to torrent api
This commit is contained in:
@@ -417,8 +417,8 @@ class TorrentController extends BaseController
|
||||
Keyword::upsert($keywords->toArray(), ['torrent_id', 'name']);
|
||||
}
|
||||
|
||||
// check for trusted user and update torrent
|
||||
if ($user->group->is_trusted) {
|
||||
// check for trusted user & mod queue isn't opted in and update torrent
|
||||
if ($user->group->is_trusted && !$request->boolean('mod_queue_opt_in')) {
|
||||
$appurl = config('app.url');
|
||||
$user = $torrent->user;
|
||||
$username = $user->username;
|
||||
|
||||
Reference in New Issue
Block a user