From 3554008c7f4e72a22e648130f74d22c95058a917 Mon Sep 17 00:00:00 2001 From: Tom Teichler <tom.teichler@teckids.org> Date: Mon, 26 Aug 2019 22:57:59 +0200 Subject: [PATCH] Show root menu only if user is authenticated. --- biscuit/apps/chronos/menus.py | 1 + 1 file changed, 1 insertion(+) diff --git a/biscuit/apps/chronos/menus.py b/biscuit/apps/chronos/menus.py index cad7beaa..4ac8cff5 100644 --- a/biscuit/apps/chronos/menus.py +++ b/biscuit/apps/chronos/menus.py @@ -6,6 +6,7 @@ MENUS = { 'name': _('Timetables'), 'url': '#', 'root': True, + 'validators': ['menu_generator.validators.is_authenticated'], 'submenu': [ { 'name': _('Timetable'), -- GitLab