forked from leftypol/leftypol
Attempt fix broken unban on serveral pages
This commit is contained in:
parent
6863db49ef
commit
3351715795
2 changed files with 2 additions and 2 deletions
|
@ -858,7 +858,7 @@ function mod_page_ip($ip) {
|
||||||
if (filter_var($ip, FILTER_VALIDATE_IP) === false)
|
if (filter_var($ip, FILTER_VALIDATE_IP) === false)
|
||||||
error("Invalid IP address.");
|
error("Invalid IP address.");
|
||||||
|
|
||||||
if (isset($_POST['ban_id'], $_POST['unban_mask'])) {
|
if (isset($_POST['ban_id'], $_POST['unban'])) {
|
||||||
if (!hasPermission($config['mod']['unban']))
|
if (!hasPermission($config['mod']['unban']))
|
||||||
error($config['error']['noaccess']);
|
error($config['error']['noaccess']);
|
||||||
|
|
||||||
|
|
|
@ -95,7 +95,7 @@
|
||||||
<th>{% trans 'Action' %}</th>
|
<th>{% trans 'Action' %}</th>
|
||||||
<td>
|
<td>
|
||||||
<input type="hidden" name="appeal_id" value="{{ ban.id }}">
|
<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">
|
<input type="submit" name="deny" value="Deny appeal">
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue