From aa5fdf4d40f76665f7c61962d46d11d102436c20 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 3 Aug 2019 18:41:32 +0200 Subject: [PATCH] Fix Internal Server Error when not logged in --- royalnet/version.py | 2 +- royalnet/web/royalprints/profile/templates/profile_page.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/royalnet/version.py b/royalnet/version.py index 6f1f79c5..29da4ff7 100644 --- a/royalnet/version.py +++ b/royalnet/version.py @@ -1 +1 @@ -semantic = "5.0a32" +semantic = "5.0a34" diff --git a/royalnet/web/royalprints/profile/templates/profile_page.html b/royalnet/web/royalprints/profile/templates/profile_page.html index 894746e1..7e8efdfa 100644 --- a/royalnet/web/royalprints/profile/templates/profile_page.html +++ b/royalnet/web/royalprints/profile/templates/profile_page.html @@ -16,7 +16,7 @@ Bio - {% if session["royal"]["uid"] == royal.uid or session["royal"]["role"] == "Admin" %} + {% if session["royal"] and (session["royal"]["uid"] == royal.uid or session["royal"]["role"] == "Admin") %} Modifica {% else %} Modifica