mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-26 10:21:09 -04:00
Don’t test for existance of current_user
Current_user is never falsy - it's an `AnonymousUserMixin` when someone's not logged in.
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user