diff --git a/sections/better/transcode_beta.php b/sections/better/transcode_beta.php index 942a0f92..c9d8b33f 100644 --- a/sections/better/transcode_beta.php +++ b/sections/better/transcode_beta.php @@ -137,7 +137,9 @@ function transcode_parse_groups($Groups) { AND tg.CategoryID = 1 AND x.uid='$UserID' ".($_GET['filter'] == 'seeding' ? "AND x.active=1 AND x.Remaining=0" : "")); + $Debug->set_flag('SELECTed ' . $_GET['filter'] . ' torrents'); $Snatched = $DB->to_array(); + $Debug->set_flag('Received data from DB'); shuffle($Snatched); // randomize results while($ResultCount < TORRENTS_PER_PAGE && count($Snatched) > 0) { // we throw TORRENTS_PER_PAGE results into Sphinx until we have at least TORRENTS_PER_PAGE results (or no snatches left) diff --git a/sections/torrents/edit.php b/sections/torrents/edit.php index e36fc21f..0938d8a8 100644 --- a/sections/torrents/edit.php +++ b/sections/torrents/edit.php @@ -99,11 +99,12 @@ } $TorrentForm->foot(); } - - -if (check_perms('torrents_edit') && $Properties['CategoryID'] == 1) { +if (check_perms('torrents_edit') && (check_perms('users_mod') || $Properties['CategoryID'] == 1)) { ?>