From c438c1e2e0bbea0f1148d0299959b0758199c4e8 Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Wed, 2 Nov 2016 16:41:25 -0400 Subject: [PATCH] This is the worst if statement ever. --- snipts/templates/snipts/list.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snipts/templates/snipts/list.html b/snipts/templates/snipts/list.html index 37de46d..e6cd5af 100644 --- a/snipts/templates/snipts/list.html +++ b/snipts/templates/snipts/list.html @@ -29,7 +29,7 @@ {% if request.user == user and not request.user.is_active and not public %} Welcome! Please activate your account to create your first snipt. {% else %} - {% if request.user == user %} + {% if request.user == user and request.user.is_authenticated %} Welcome! Create your first snipt by clicking "Add Snipt" above. {% else %} No snipts to show here. Sorry! @@ -46,7 +46,7 @@ {% if request.user == user and not request.user.is_active and not public %} Welcome! Please activate your account to create your first snipt. {% else %} - {% if request.user == user %} + {% if request.user == user and request.user.is_authenticated %} Welcome! Create your first snipt by clicking "Add Snipt" above. {% else %} No snipts to show here. Sorry!