Have a nicer 403 Forbidden message when the user isn't logged in.

Since we don't know who the user is, just stating that they don't have
access isn't correct.
This commit is contained in:
2017-09-05 11:35:13 +02:00
parent a8e912fcb1
commit b6b7aad046

View File

@@ -4,7 +4,12 @@
.error-top-container
.error-title Forbidden.
.error-lead
| {% if current_user.is_authenticated %}
p You don't have access to this content.
| {% else %}
p You don't have access to this content. Or maybe you do once you <a href="{{ login_url }}">log in</a>.
| {% endif %}
| {% if current_user.is_authenticated %}
| {% if current_user.has_role('demo') %}