From 703d16f3317737bb7c5ce06a98292b98dc1a51ca Mon Sep 17 00:00:00 2001 From: Gregoo Date: Sat, 18 Jan 2025 17:33:10 +0100 Subject: [PATCH] Do not display upload instructions link if in read only mode --- templates/set/card.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/set/card.html b/templates/set/card.html index 7284a27..1469fd0 100644 --- a/templates/set/card.html +++ b/templates/set/card.html @@ -47,7 +47,10 @@ {{ instruction.filename }} {% endfor %} {% else %} - Upload an instructions file + No instructions file found. + {% if g.login.is_authenticated() %} + Upload an instructions file + {% endif %} {% endif %} {{ accordion.footer() }}