From 6018a8f19816dd86eca8dbba4e29a2d8d61dea87 Mon Sep 17 00:00:00 2001
From: Art Lukyanchyk <artiom.lukyanchyk@hs-hannover.de>
Date: Tue, 16 Jan 2018 16:47:10 +0100
Subject: [PATCH] Update the provided 403 page a little

---
 ssoauth/templates/403.html | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/ssoauth/templates/403.html b/ssoauth/templates/403.html
index 2c38c4e..2b5e2df 100644
--- a/ssoauth/templates/403.html
+++ b/ssoauth/templates/403.html
@@ -6,9 +6,13 @@
 </head>
 <body>
 <h1>403 Forbidden</h1>
-<p>
-    You (<code><strong>{{ request.user }}</strong></code>) don't have permissions to access this page.
-</p>
-{% if not request.user.is_anonymous %}<p><a href="{% url "sso-logout" %}">Log Out</a></p>{% endif %}
+{% if request.user.is_authenticated %}
+    <p>
+        You (<code><strong>{{ request.user }}</strong></code>) don't have permissions to access this page.
+    </p>
+    <p>
+        <a href="{% url "sso-logout" %}">Log Out</a>
+    </p>
+{% endif %}
 </body>
 </html>
-- 
GitLab