mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Merge pull request #2677 from NOYB/Title_Bar_Shortcuts_Privileges
This commit is contained in:
commit
656cf2ac91
@ -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>';
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user