Hide user authentication if login is disabled

This commit is contained in:
emanuele-f 2018-12-04 10:48:57 +01:00
parent b8f4ead32f
commit cb514ef9e1
2 changed files with 2 additions and 1 deletions

View file

@ -11,7 +11,7 @@ local hasRadius = ntop.hasRadiusSupport()
-- This table is used both to control access to the preferences and to filter preferences results
local menu_subpages = {
{id="auth", label=i18n("prefs.user_authentication"), advanced=false, pro_only=true, nedge_hidden=true, hidden=false, entries={
{id="auth", label=i18n("prefs.user_authentication"), advanced=false, pro_only=true, nedge_hidden=true, hidden=not(prefs.is_users_login_enabled), entries={
toggle_ldap_auth = {
title = i18n("prefs.toggle_ldap_auth"),
description = i18n("prefs.toggle_ldap_auth_descr"),