From 34f750a7c70b3e2c46692aba0d7236ef85ab8422 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Fri, 13 Aug 2021 19:59:28 -0700 Subject: [PATCH] Show session page to admins --- amanuensis/server/lexicon.jinja | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/amanuensis/server/lexicon.jinja b/amanuensis/server/lexicon.jinja index 4940500..9c976eb 100644 --- a/amanuensis/server/lexicon.jinja +++ b/amanuensis/server/lexicon.jinja @@ -26,7 +26,10 @@ {% else %}href="{{ url_for('lexicon.stats', name=g.lexicon.name) }}" {% endif %}>Statistics{% endblock %} -{% if current_user.is_authenticated and memq.try_from_ids(g.db, current_user.id, g.lexicon.id) %} +{% if current_user.is_authenticated and ( + current_user.is_site_admin + or memq.try_from_ids(g.db, current_user.id, g.lexicon.id) + ) %} {# self.sb_logo(), #} {% set template_sidebar_rows = [ self.sb_home(),