Attempt fix broken unban on serveral pages

This commit is contained in:
Zankaria 2024-04-25 18:50:32 +02:00
parent 6863db49ef
commit 3351715795
2 changed files with 2 additions and 2 deletions

View file

@ -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']);