mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-18 12:11:36 +00:00
action=user_recents did not respect paranoia settings
This commit is contained in:
parent
a302576db8
commit
203ac5476f
@ -8,6 +8,26 @@
|
||||
if (empty($Limit)) {
|
||||
$Limit = 15;
|
||||
}
|
||||
|
||||
if ($UserID != $LoggedUser['ID']) {
|
||||
// We can always view our own torrents
|
||||
$DB->query("
|
||||
SELECT m.Paranoia
|
||||
FROM users_main AS m
|
||||
WHERE m.ID = $UserID");
|
||||
|
||||
if (!$DB->has_results()) { // If user doesn't exist
|
||||
json_die("failure", "no such user");
|
||||
}
|
||||
|
||||
list($Paranoia) = $DB->next_record(MYSQLI_NUM, false);
|
||||
|
||||
$Paranoia = unserialize($Paranoia);
|
||||
if (!is_array($Paranoia)) {
|
||||
$Paranoia = array();
|
||||
}
|
||||
}
|
||||
|
||||
$Results = array();
|
||||
if (check_paranoia_here('snatched')) {
|
||||
$DB->query("
|
||||
|
Loading…
Reference in New Issue
Block a user