mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-24 12:09:02 -05:00
fix: internal in API
This commit is contained in:
@@ -122,7 +122,11 @@ class TorrentController extends BaseController
|
||||
$torrent->anon = $request->input('anonymous');
|
||||
$torrent->stream = $request->input('stream');
|
||||
$torrent->sd = $request->input('sd');
|
||||
$torrent->internal = $request->input('internal');
|
||||
if ($user->group->is_internal) {
|
||||
$torrent->internal = $request->input('internal');
|
||||
} else {
|
||||
$torrent->internal = 0;
|
||||
}
|
||||
$torrent->moderated_at = Carbon::now();
|
||||
$torrent->moderated_by = User::where('username', 'System')->first()->id; //System ID
|
||||
|
||||
@@ -147,6 +151,7 @@ class TorrentController extends BaseController
|
||||
'anon' => 'required',
|
||||
'stream' => 'required',
|
||||
'sd' => 'required',
|
||||
'internal' => 'required',
|
||||
]);
|
||||
|
||||
if ($v->fails()) {
|
||||
|
||||
Reference in New Issue
Block a user