hide also topmenu if disabled

This commit is contained in:
Frédéric FRANCE 2020-12-10 17:37:44 +01:00 committed by GitHub
parent 693a7590ef
commit d9682df682
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -196,3 +196,7 @@ print '
}
});
});'."\n";
// hide topmenus disabled
if (!empty($conf->global->MAIN_BUTTON_HIDE_UNAUTHORIZED) && (!$user->admin)) {
print '$("li:has(.tmenudisabled)").hide();';
}