mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
changed: user can not delete torrent
This commit is contained in:
@@ -173,13 +173,17 @@ if (!$torrent) {
|
||||
|
||||
err("torrent not registered with this tracker");
|
||||
}
|
||||
if (!user_can('seebanned', false, $az['id'], $az['class'])) {
|
||||
if ($torrent['banned'] == 'yes') {
|
||||
if ($torrent['banned'] == 'yes') {
|
||||
if (!user_can('seebanned', false, $az['id'])) {
|
||||
err("torrent banned");
|
||||
} elseif ($torrent['approval_status'] != \App\Models\Torrent::APPROVAL_STATUS_ALLOW && get_setting('torrent.approval_status_none_visible') == 'no') {
|
||||
}
|
||||
}
|
||||
if ($torrent['approval_status'] != \App\Models\Torrent::APPROVAL_STATUS_ALLOW && get_setting('torrent.approval_status_none_visible') == 'no') {
|
||||
if (!user_can('seebanned', false, $az['id'])) {
|
||||
err("torrent review not approved");
|
||||
}
|
||||
}
|
||||
|
||||
// select peers info from peers table for this torrent
|
||||
$torrentid = $torrent["id"];
|
||||
$numpeers = $torrent["seeders"]+$torrent["leechers"];
|
||||
|
||||
Reference in New Issue
Block a user