From d9682df682254fa2096774b4ac00d535533d6e45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Thu, 10 Dec 2020 17:37:44 +0100 Subject: [PATCH] hide also topmenu if disabled --- htdocs/core/js/lib_foot.js.php | 4 ++++ 1 file changed, 4 insertions(+) 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();'; +}