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:
parent
a8e912fcb1
commit
b6b7aad046
@ -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') %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user