forked from leftypol/leftypol
?/IP/: Don't show posts for board user doesn't have access to
This commit is contained in:
parent
fbc78f7632
commit
343397d561
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue