From 38386fb47410c7de9da277b1bc5cdb9a042e5811 Mon Sep 17 00:00:00 2001 From: NOYB Date: Sat, 20 Feb 2016 02:10:30 -0800 Subject: [PATCH] Title Bar Shortcuts Privileges Only display title bar shortcuts the user has privileges for. Confusing and inconvenient being sent to the home page when clicking on those. Then have to browse back to where you were. --- src/usr/local/www/head.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/usr/local/www/head.inc b/src/usr/local/www/head.inc index 8318986733..04fa583b24 100644 --- a/src/usr/local/www/head.inc +++ b/src/usr/local/www/head.inc @@ -505,7 +505,7 @@ if (($pagename === "index.php") && ($numColumns > 2)) { ' . $link . ''; } -if ('' != ($link = get_shortcut_status_link($shortcut_section, false))) { +if (('' != ($link = get_shortcut_status_link($shortcut_section, false))) && (isAllowedPage($shortcuts[$shortcut_section]['status']))) { echo '
  • ' . $link . '
  • '; } -if ('' != ($link = get_shortcut_log_link($shortcut_section, false))) { +if (('' != ($link = get_shortcut_log_link($shortcut_section, false))) && (isAllowedPage($shortcuts[$shortcut_section]['log']))) { echo '
  • ' . $link . '
  • '; }