1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Fix Internal Server Error when not logged in

This commit is contained in:
Steffo 2019-08-03 18:41:32 +02:00
parent 79f553b629
commit aa5fdf4d40
2 changed files with 2 additions and 2 deletions

View file

@ -1 +1 @@
semantic = "5.0a32" semantic = "5.0a34"

View file

@ -16,7 +16,7 @@
Bio Bio
</span> </span>
<span class="right"> <span class="right">
{% 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") %}
<a class="edit no-icon" href="{{ url_for("profile.profile_editbio", username=royal.username) }}">Modifica</a> <a class="edit no-icon" href="{{ url_for("profile.profile_editbio", username=royal.username) }}">Modifica</a>
{% else %} {% else %}
<a class="edit no-icon disabled" title="Non sei autorizzato a modificare questa bio.">Modifica</a> <a class="edit no-icon disabled" title="Non sei autorizzato a modificare questa bio.">Modifica</a>