Browse Source

Attempt fix broken unban on serveral pages

pull/132/head
Zankaria 2 weeks ago
parent
commit
3351715795
  1. 2
      inc/mod/pages.php
  2. 2
      templates/mod/ban_appeals.html

2
inc/mod/pages.php

@ -858,7 +858,7 @@ function mod_page_ip($ip) {
if (filter_var($ip, FILTER_VALIDATE_IP) === false)
error("Invalid IP address.");
if (isset($_POST['ban_id'], $_POST['unban_mask'])) {
if (isset($_POST['ban_id'], $_POST['unban'])) {
if (!hasPermission($config['mod']['unban']))
error($config['error']['noaccess']);

2
templates/mod/ban_appeals.html

@ -95,7 +95,7 @@
<th>{% trans 'Action' %}</th>
<td>
<input type="hidden" name="appeal_id" value="{{ ban.id }}">
<input type="submit" name="unban_mask" value="Unban mask">
<input type="submit" name="unban" value="Unban range">
<input type="submit" name="deny" value="Deny appeal">
</td>
</tr>

Loading…
Cancel
Save