diff --git a/admin/view_message_log.php b/admin/view_message_log.php index afbdbbbd..66fce341 100644 --- a/admin/view_message_log.php +++ b/admin/view_message_log.php @@ -14,6 +14,7 @@ hesk_session_start(); hesk_dbConnect(); hesk_isLoggedIn(); +hesk_checkPermission('can_view_logs'); define('EXTRA_JS', ''); @@ -45,8 +46,8 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
- - + +
@@ -61,8 +62,12 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
+
+
+ +
+
- diff --git a/build.php b/build.php new file mode 100644 index 00000000..3a51bf2d --- /dev/null +++ b/build.php @@ -0,0 +1,4 @@ +js/platform.js"> - ' . $hesklang['manage_statuses'] . ''; } + if (hesk_checkPermission('can_view_logs', 0)) { + $tools_count++; + $dropdown_items .= '
  • ' . $hesklang['view_message_log'] . '
  • '; + } $dropdown_items .= ''; if ($tools_count > 1) { @@ -224,6 +228,12 @@ if (hesk_check_kb_only(false)) { $active = ' class="active"'; } echo ' ' . $hesklang['tools'] . ''; + } elseif (hesk_checkPermission('can_view_logs', 0)) { + $active = ''; + if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_TOOLS') { + $active = ' class="active"'; + } + echo ' ' . $hesklang['tools'] . ''; } } if (hesk_checkPermission('can_man_settings', 0)) { diff --git a/language/en/text.php b/language/en/text.php index b9c5947f..4b041e7e 100644 --- a/language/en/text.php +++ b/language/en/text.php @@ -30,6 +30,8 @@ $hesklang['severity'] = 'Severity'; $hesklang['debug'] = 'Debug'; $hesklang['warning_title_case'] = 'Warning'; $hesklang['logs'] = 'Logs'; +$hesklang['view_message_log'] = 'View Message Log'; +$hesklang['can_view_logs'] = 'Can view message logs'; // ADDED OR MODIFIED IN Mods for HESK 2.5.2 $hesklang['manage_statuses'] = 'Manage Statuses';