Skip to content

Commit

Permalink
fix active check for remote identities
Browse files Browse the repository at this point in the history
  • Loading branch information
Her Email authored and alphatownsman committed Nov 19, 2023
1 parent d81743a commit 757e956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion users/models/apidentity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 757e956

Please sign in to comment.