Skip to content
Snippets Groups Projects
Verified Commit 5551902f authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

ONly add 2fa menu entry if enabled.

parent 55b64169
No related branches found
No related tags found
1 merge request!59Resolve "2FA"
......@@ -26,7 +26,7 @@ MENUS = {
{
'name': _('Two factor auth'),
'url': 'two_factor:profile',
'validators': ['menu_generator.validators.is_authenticated']
'validators': ['menu_generator.validators.is_authenticated', lambda request: 'two_factor' in settings.INSTALLED_APPS]
}
]
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment