Skip to content

Commit

Permalink
fix: add logout link to 403 page for users with unapproved accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
ngurenyaga committed Jul 22, 2021
1 parent 405bcb4 commit 048f60f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions fahari/templates/403.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,23 @@ <h1 class="text-center">Permission Denied</h1>
{% if user.is_approved %}
Forbidden
{% else %}
Profile Not Approved
Profile Not Approved.
{% endif %}
</p>
{% if user.is_approved %}
<p class="text-gray-500 mb-0">
You do not have permission to access this page. If you think this is a mistake, please contact us.
</p>
<a href="{% url 'home' %}">&larr; Back to Dashboard</a>
{% else %}
<p class="text-gray-500 mb-0">
Your user profile is <strong>not yet approved</strong>. Please contact the system administrator for assistance.

<hr/>
<a href="{% url 'account_logout' %}">
&larr; Click here to log out.
</a>
</p>
{% endif %}
<a href="{% url 'home' %}">&larr; Back to Dashboard</a>
</div>
{% endblock content %}

0 comments on commit 048f60f

Please sign in to comment.