From d828319897c6e8b8fd95d7d848cef88193b75c72 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 3 Feb 2019 20:37:47 +0100 Subject: [PATCH] Don't lock unexisting pages --- templates/wikipage.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/templates/wikipage.html b/templates/wikipage.html index 061fb0ec..e056b745 100644 --- a/templates/wikipage.html +++ b/templates/wikipage.html @@ -68,10 +68,12 @@ 🔒 Pagina bloccata: non possono essere effettuate ulteriori modifiche. {% endif %} - {% if g.user.role == "Admin" %} -
- -
+ {% if wiki_page is not none %} + {% if g.user.role == "Admin" %} +
+ +
+ {% endif %} {% endif %} {% endblock %} \ No newline at end of file