Fix user profile error if not logged in.

This commit is contained in:
Adam Kelly 2020-02-24 16:38:01 +00:00
parent c1cf211d00
commit 0d922dfa86

View file

@ -25,7 +25,7 @@
<div id="branding"><a href="/">📚FediReads</a></div>
<div id="actions">
<div id="account">
{% if user.is_authenticated %}
{% if request.user.is_authenticated %}
<form name="logout" action="/logout/" method="post">
{% csrf_token %}
Welcome, {% include 'snippets/username.html' with user=request.user %}