From b5e430779226faa90b101637779f59d998292cb2 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Thu, 30 Apr 2020 23:37:44 -0700 Subject: [PATCH] Hide session page in sidebar for anons --- amanuensis/server/lexicon.jinja | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/amanuensis/server/lexicon.jinja b/amanuensis/server/lexicon.jinja index 0431219..87c1a15 100644 --- a/amanuensis/server/lexicon.jinja +++ b/amanuensis/server/lexicon.jinja @@ -26,10 +26,19 @@ {% else %}href="{{ url_for('lexicon.stats', name=g.lexicon.cfg.name) }}" {% endif %}>Statistics{% endblock %} +{% if current_user.uid in g.lexicon.cfg.join.joined %} + {# self.sb_logo(), #} {% set template_sidebar_rows = [ - self.sb_logo(), self.sb_home(), self.sb_contents(), self.sb_rules(), self.sb_session(), self.sb_stats()] %} +{% else %} + {# self.sb_logo(), #} +{% set template_sidebar_rows = [ + self.sb_home(), + self.sb_contents(), + self.sb_rules(), + self.sb_stats()] %} +{% endif %}