Skip to content

Commit

Permalink
Update terraso_backend/apps/collaboration/graphql/memberships.py
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Schreiber <[email protected]>
  • Loading branch information
josebui and paulschreiber authored Nov 7, 2023
1 parent 213442b commit e2691d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terraso_backend/apps/collaboration/graphql/memberships.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def resolve_account_membership(self, info):
if user.is_anonymous:
return None
if hasattr(self, "account_memberships"):
if len(self.account_memberships) > 0:
if len(self.account_memberships):
return self.account_memberships[0]
return None
return self.memberships.filter(user=user).first()
Expand Down

0 comments on commit e2691d6

Please sign in to comment.