From 97f3a2374b1be2b8620cd1e65de419b60228888a Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Thu, 2 Feb 2017 09:18:15 +0000 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20test=20for=20existance=20of=20`?= =?UTF-8?q?current=5Fuser`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Current_user is never falsy - it's an `AnonymousUserMixin` when someone's not logged in. --- app/main/views/feedback.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main/views/feedback.py b/app/main/views/feedback.py index 05b9f6fe7..6a243a6bd 100644 --- a/app/main/views/feedback.py +++ b/app/main/views/feedback.py @@ -137,7 +137,7 @@ def thanks(): 'views/support/thanks.html', urgent=convert_to_boolean(request.args.get('urgent')), anonymous=convert_to_boolean(request.args.get('anonymous')), - logged_in=(current_user and current_user.is_authenticated), + logged_in=current_user.is_authenticated, )