Commit a1c1b476 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Merge branch '968-login-message-visible' into 'master'

Fixed login message visible

Closes #968

See merge request !1500
parents 7a75101d 18dbb11a
......@@ -193,7 +193,7 @@
onclick="return confirm('{% trans 'Are you sure you want to cancel your registration?' %}');"/>
{% endif %}
</form>
{% elif request.user.is_authenticated is False %}
{% elif not request.user.is_authenticated and event.registration_required %}
<a class="btn btn-primary"
href="{% url 'login' %}?next={{ request.path }}">{% trans "Login" %}</a>
{% endif %}
......@@ -204,7 +204,7 @@
</td>
<td>
<em>
{% if not request.user.is_authenticated %}
{% if not request.user.is_authenticated and event.registration_required %}
{% trans "You have to log in before you can register for this event." %}
{% else %}
{% if not event.registration_required %}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment