summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/head.inc
diff options
context:
space:
mode:
authorNOYB <Al_Stu@Frontier.com>2016-02-19 21:14:30 -0800
committerStephen Beaver <sbeaver@netgate.com>2016-02-20 07:30:56 -0500
commit820780b506ea9dc81d33b4637ee4406dafc8df89 (patch)
treeda5ff4268397c8d2ad9fdbd23c5e834fa6bdb24f /src/usr/local/www/head.inc
parentf700dc99fd31162ee375fd08bcefbfbcb34f81b9 (diff)
downloadpfsense-820780b506ea9dc81d33b4637ee4406dafc8df89.zip
pfsense-820780b506ea9dc81d33b4637ee4406dafc8df89.tar.gz
Status / System Logs - Manage Logs Panel Access
If the user does not have access to status logs settings page, then exclude the manage log panel from the page.
Diffstat (limited to 'src/usr/local/www/head.inc')
-rw-r--r--src/usr/local/www/head.inc9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/usr/local/www/head.inc b/src/usr/local/www/head.inc
index 8318986..7a471e0 100644
--- a/src/usr/local/www/head.inc
+++ b/src/usr/local/www/head.inc
@@ -496,13 +496,18 @@ if (($pagename === "index.php") && ($numColumns > 2)) {
</li>
<?php endif ?>
- <?php if ($system_logs_manage_log_form_hidden): ?>
+ <?php if ($system_logs_manage_log_form_hidden):
+ /* If the user does not have access to status logs settings page, then exclude the manage log panel icon from the title bar. */
+ if (isAllowedPage("status_logs_settings.php")) {
+ ?>
<li>
<a onclick="$('#manage-log-form').toggle(360)" title="<?=gettext("Manage log")?>">
<i class="fa fa-wrench icon-pointer"></i>
</a>
</li>
- <?php endif ?>
+ <?php }
+ endif
+ ?>
<?php
if (!$hide_service_status && !empty($shortcuts[$shortcut_section]['service'])) {
OpenPOWER on IntegriCloud