mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
Fix Internal Server Error when not logged in
This commit is contained in:
parent
79f553b629
commit
aa5fdf4d40
2 changed files with 2 additions and 2 deletions
|
@ -1 +1 @@
|
|||
semantic = "5.0a32"
|
||||
semantic = "5.0a34"
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
Bio
|
||||
</span>
|
||||
<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>
|
||||
{% else %}
|
||||
<a class="edit no-icon disabled" title="Non sei autorizzato a modificare questa bio.">Modifica</a>
|
||||
|
|
Loading…
Reference in a new issue