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';