summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2020-10-17 09:41:24 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2020-10-19 07:42:41 (GMT)
commit1fc76fd66ef70222241ad511a2bf318540f98db4 (patch)
treede9d10db00941b133a08a59ca7698f8cc4832731
parente8fa64c228bf175ee27d1e2dc6f414dcd0425629 (diff)
downloadauthentic-1fc76fd66ef70222241ad511a2bf318540f98db4.zip
authentic-1fc76fd66ef70222241ad511a2bf318540f98db4.tar.gz
authentic-1fc76fd66ef70222241ad511a2bf318540f98db4.tar.bz2
misc: don't expose journal in publik menu (#47813)v2.77
-rw-r--r--src/authentic2/manager/views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/authentic2/manager/views.py b/src/authentic2/manager/views.py
index 31c953b..bf97d08 100644
--- a/src/authentic2/manager/views.py
+++ b/src/authentic2/manager/views.py
@@ -646,6 +646,8 @@ class MenuJson(HomepageView):
def get(self, request, *args, **kwargs):
menu_entries = []
for entry in self.get_homepage_entries():
+ if entry.get('slug') == 'journal':
+ continue
menu_entries.append({
'label': six.text_type(entry['label']),
'slug': entry.get('slug', ''),