approval allow automatic

This commit is contained in:
xiaomlove
2022-10-04 18:43:00 +08:00
parent bb000fb67a
commit 2737302281
9 changed files with 41 additions and 7 deletions
+3
View File
@@ -367,6 +367,9 @@ if(user_can('torrentmanage') && ($CURUSER['picker'] == 'yes' || get_user_class()
}
}
}
if (user_can('torrent-approval-allow-automatic')) {
$insert['approval_status'] = \App\Models\Torrent::APPROVAL_STATUS_ALLOW;
}
do_log("[INSERT_TORRENT]: " . nexus_json_encode($insert));
$id = \Nexus\Database\NexusDB::insert('torrents', $insert);