Skip to content

Commit

Permalink
+ Recent Posts now honor privacy settings. (Recent.php)
Browse files Browse the repository at this point in the history
@ There are still probably many places where I need to do this kind of thing. I never looked much into it because the rest of the privacy system wasn't really ready until recently anyway. Also, I still have about 400KB of Noisen.com patches that I need to go through. All of the original {query_see_topic}'s are in there, but I was so conservative that I added it in way too many places.
  • Loading branch information
Nao committed Jul 6, 2014
1 parent 4152e82 commit 64aeb4c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/app/Recent.php
Expand Up @@ -178,6 +178,7 @@ function Recent()
SELECT m.id_msg
FROM {db_prefix}messages AS m
INNER JOIN {db_prefix}boards AS b ON (b.id_board = m.id_board)
INNER JOIN {db_prefix}topics AS t ON (t.id_topic = m.id_topic) AND {query_see_topic}
WHERE ' . $query_this_board . '
AND m.approved = {int:is_approved}
ORDER BY m.id_msg DESC
Expand Down

0 comments on commit 64aeb4c

Please sign in to comment.