summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/head.inc
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2016-02-20 07:32:35 -0500
committerStephen Beaver <sbeaver@netgate.com>2016-02-20 07:32:35 -0500
commit656cf2ac91c1b0b8a875e6a9b693c173cb68ef9a (patch)
tree53a3e92931d752dfea0443a74933c7c055e57cc0 /src/usr/local/www/head.inc
parenteb15d4187ee0a489483c1242bc1c7ee80b9f92eb (diff)
parent38386fb47410c7de9da277b1bc5cdb9a042e5811 (diff)
downloadpfsense-656cf2ac91c1b0b8a875e6a9b693c173cb68ef9a.zip
pfsense-656cf2ac91c1b0b8a875e6a9b693c173cb68ef9a.tar.gz
Merge pull request #2677 from NOYB/Title_Bar_Shortcuts_Privileges
Diffstat (limited to 'src/usr/local/www/head.inc')
-rw-r--r--src/usr/local/www/head.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/usr/local/www/head.inc b/src/usr/local/www/head.inc
index 7a471e0..114ce81 100644
--- a/src/usr/local/www/head.inc
+++ b/src/usr/local/www/head.inc
@@ -510,7 +510,7 @@ if (($pagename === "index.php") && ($numColumns > 2)) {
?>
<?php
-if (!$hide_service_status && !empty($shortcuts[$shortcut_section]['service'])) {
+if (!$hide_service_status && !empty($shortcuts[$shortcut_section]['service']) && isAllowedPage('status_services.php')) {
$ssvc = array();
switch ($shortcut_section) {
case "openvpn":
@@ -528,15 +528,15 @@ if (!$hide_service_status && !empty($shortcuts[$shortcut_section]['service'])) {
}
}
-if ('' != ($link = get_shortcut_main_link($shortcut_section, false))) {
+if (('' != ($link = get_shortcut_main_link($shortcut_section, false))) && (isAllowedPage($shortcuts[$shortcut_section]['main']))) {
echo '<li>' . $link . '</li>';
}
-if ('' != ($link = get_shortcut_status_link($shortcut_section, false))) {
+if (('' != ($link = get_shortcut_status_link($shortcut_section, false))) && (isAllowedPage($shortcuts[$shortcut_section]['status']))) {
echo '<li>' . $link . '</li>';
}
-if ('' != ($link = get_shortcut_log_link($shortcut_section, false))) {
+if (('' != ($link = get_shortcut_log_link($shortcut_section, false))) && (isAllowedPage($shortcuts[$shortcut_section]['log']))) {
echo '<li>' . $link . '</li>';
}
OpenPOWER on IntegriCloud