diff --git a/htdocs/core/js/lib_foot.js.php b/htdocs/core/js/lib_foot.js.php index d04379210a6..8419f76bfc1 100644 --- a/htdocs/core/js/lib_foot.js.php +++ b/htdocs/core/js/lib_foot.js.php @@ -196,3 +196,7 @@ print ' } }); });'."\n"; +// hide topmenus disabled +if (!empty($conf->global->MAIN_BUTTON_HIDE_UNAUTHORIZED) && (!$user->admin)) { + print '$("li:has(.tmenudisabled)").hide();'; +}