1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-31 12:23:48 +01:00

fix bug where mods could see bans not on their board on IP page

This commit is contained in:
8chan Admin 2014-04-05 16:24:26 +00:00
parent 6d992068aa
commit 3301548eee
2 changed files with 2 additions and 1 deletions

View File

@ -799,7 +799,6 @@ function mod_page_ip($ip) {
if ($config['mod']['dns_lookup'])
$args['hostname'] = rDNS($ip);
$boards = listBoards();
foreach ($boards as $board) {
openBoard($board['uri']);

View File

@ -89,6 +89,7 @@
<legend>{{ bans|count }} {% trans bans_on_record %}</legend>
{% for ban in bans %}
{% if ban.board in mod.boards or mod.boards.0 == '*' %}
<form action="" method="post" style="text-align:center">
<input type="hidden" name="token" value="{{ security_token }}">
<table style="width:400px;margin-bottom:10px;border-bottom:1px solid #ddd;padding:5px">
@ -164,6 +165,7 @@
<input type="hidden" name="ban_id" value="{{ ban.id }}">
<input type="submit" name="unban" value="{% trans 'Remove ban' %}">
</form>
{% endif %}
{% endfor %}
</fieldset>
{% endif %}