diff --git a/admin/banned_emails.php b/admin/banned_emails.php
index 2151160d..9599d650 100644
--- a/admin/banned_emails.php
+++ b/admin/banned_emails.php
@@ -89,6 +89,15 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
' . $hesklang['sm_title'] . '
';
}
+
+ // Show a link to email tpl management if user has permission to do so
+ if (hesk_checkPermission('can_man_email_tpl', 0)) {
+ echo '
+
diff --git a/admin/banned_ips.php b/admin/banned_ips.php
index e4599c36..1edc5672 100644
--- a/admin/banned_ips.php
+++ b/admin/banned_ips.php
@@ -92,6 +92,15 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
' . $hesklang['sm_title'] . '
';
}
+
+ // Show a link to email tpl management if user has permission to do so
+ if (hesk_checkPermission('can_man_email_tpl', 0)) {
+ echo '
+
+ $value) {
+ $languages[$key] = $hesk_settings['languages'][$key]['folder'];
+ }
+
+ // Get all files, but don't worry about index.htm, items beginning with '.', or the html folder
+ // We'll also assume the template file exists in all language folders and in the html folder
+ reset($languages);
+ $firstKey = key($languages);
+ $firstDirectory = HESK_PATH . 'language/'.$languages[$firstKey].'/emails';
+ $directoryListing = preg_grep('/^([^.])/', scandir($firstDirectory));
+ $emailTemplates = array_diff($directoryListing, array('html', 'index.htm'));
+
+ ?>
+