From a0f1062077c3999e40d8671b0874225aceb57dec Mon Sep 17 00:00:00 2001 From: Paul Marillonnet Date: Fri, 30 Oct 2020 15:38:15 +0100 Subject: [PATCH] auth_fc: misc django 2 compatibility (#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 46eb156a0..99eaabaeb 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