mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
add configuration: torrent.approval_status_none_visible
This commit is contained in:
@@ -806,6 +806,12 @@ if (isset($searchstr))
|
||||
$addparam .= "search_mode=".$search_mode."&";
|
||||
}
|
||||
|
||||
//approval status
|
||||
$approvalStatusNoneVisible = get_setting('torrent.approval_status_none_visible');
|
||||
if ($approvalStatusNoneVisible == 'no' && get_user_class() < $staffmem_class) {
|
||||
$wherea[] = "torrents.approval_status = " . \App\Models\Torrent::APPROVAL_STATUS_ALLOW;
|
||||
}
|
||||
|
||||
$where = implode(" AND ", $wherea);
|
||||
|
||||
if ($wherecatin)
|
||||
|
||||
Reference in New Issue
Block a user