diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-07-30 23:30:49 -0400 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-07-30 23:30:49 -0400 |
| commit | 343397d561183a72ed3a6351175b0d34ebe9ffc3 (patch) | |
| tree | 009d8605317177ea642413ebda6c0cac2b616453 /inc | |
| parent | fbc78f76323528cab0d23fa259de984b8b9db457 (diff) | |
?/IP/: Don't show posts for board user doesn't have access to
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/mod/pages.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/mod/pages.php b/inc/mod/pages.php index d447fa51..fdf9d8e9 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -744,6 +744,8 @@ function mod_page_ip($ip) { $boards = listBoards(); foreach ($boards as $board) { openBoard($board['uri']); + if (!hasPermission($config['mod']['show_ip'], $board['uri'])) + continue; $query = prepare(sprintf('SELECT * FROM `posts_%s` WHERE `ip` = :ip ORDER BY `sticky` DESC, `id` DESC LIMIT :limit', $board['uri'])); $query->bindValue(':ip', $ip); |
