Merge pull request #2677 from NOYB/Title_Bar_Shortcuts_Privileges

This commit is contained in:
Stephen Beaver 2016-02-20 07:32:35 -05:00
commit 656cf2ac91

View File

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