From 757e95654f3998d03617f853c979380307b4863b Mon Sep 17 00:00:00 2001 From: Her Email Date: Sun, 19 Nov 2023 09:22:24 -0500 Subject: [PATCH] fix active check for remote identities --- users/models/apidentity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/models/apidentity.py b/users/models/apidentity.py index 01c74b15..11ea1842 100644 --- a/users/models/apidentity.py +++ b/users/models/apidentity.py @@ -41,7 +41,7 @@ def takahe_identity(self): @property def is_active(self): return ( - self.user and self.user.is_active and self.takahe_identity.deleted is None + self.user.is_active if self.user else self.takahe_identity.deleted is None ) @property