From 6abf9e039fb106c3f3319226e858e30bcec75b76 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 30 Oct 2020 16:34:27 +0100 Subject: [PATCH] auth_fc: is_authenticated is a boolean with Django 2.2 (#48158) --- src/authentic2_auth_fc/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authentic2_auth_fc/views.py b/src/authentic2_auth_fc/views.py index 46eb156a..99eaabae 100644 --- a/src/authentic2_auth_fc/views.py +++ b/src/authentic2_auth_fc/views.py @@ -362,7 +362,7 @@ class LoginOrLinkView(PopupViewMixin, FcOAuthSessionViewMixin, View): self.logger.debug('updating user_info %s', self.fc_account.user_info) def uniqueness_check_failed(self, request): - if request.user.is_authenticated(): + if request.user.is_authenticated: # currently logged : if models.FcAccount.objects.filter(user=request.user, order=0).count(): # cannot link because we are already linked to another FC account -- 2.29.1