From 324866f3c3a34892f22ecf003a0326707192bf2b Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Sun, 9 Oct 2016 21:35:32 -0400 Subject: [PATCH] update banned emails --- admin/banned_emails.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/admin/banned_emails.php b/admin/banned_emails.php index b1078e61..dd1e8a6c 100644 --- a/admin/banned_emails.php +++ b/admin/banned_emails.php @@ -107,6 +107,9 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); '; } + if (hesk_checkPermission('can_man_settings', 0)) { + echo '
  • ' . $hesklang['tab_4'] . '
  • '; + } ?>
    @@ -307,7 +310,7 @@ function unban_email() hesk_token_check(); // Delete from bans - hesk_dbQuery("DELETE FROM `" . hesk_dbEscape($hesk_settings['db_pfix']) . "banned_emails` WHERE `id`=" . intval(hesk_GET('id')) . " LIMIT 1"); + hesk_dbQuery("DELETE FROM `" . hesk_dbEscape($hesk_settings['db_pfix']) . "banned_emails` WHERE `id`=" . intval(hesk_GET('id'))); // Redirect either to banned emails or ticket page from now on $redirect_to = ($trackingID = hesk_cleanID()) ? 'admin_ticket.php?track=' . $trackingID . '&Refresh=' . mt_rand(10000, 99999) : 'banned_emails.php';