mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
cleanup delete unconfirmred accounts + rss check special section permission
This commit is contained in:
@@ -87,9 +87,13 @@ $limit .= $showrows;
|
||||
|
||||
//approval status
|
||||
$approvalStatusNoneVisible = get_setting('torrent.approval_status_none_visible');
|
||||
if ($approvalStatusNoneVisible == 'no' && !user_can('staffmem')) {
|
||||
if ($approvalStatusNoneVisible == 'no' && !user_can('staffmem', false, $user['id'])) {
|
||||
$where .= ($where ? " AND " : "") . "torrents.approval_status = " . \App\Models\Torrent::APPROVAL_STATUS_ALLOW;
|
||||
}
|
||||
//check special section permission
|
||||
if (get_setting('main.spsct') == 'yes' && !user_can('view_special_torrent', false, $user['id'])) {
|
||||
$where .= ($where ? " AND " : "") . "categories.mode = " . get_setting('main.browsecat');
|
||||
}
|
||||
|
||||
function get_where($tablename = "sources", $itemname = "source", $getname = "sou")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user