Skip to content

Commit

Permalink
fix: do never link users with organisation identities
Browse files Browse the repository at this point in the history
  • Loading branch information
open-dynaMIX committed Jan 22, 2025
1 parent b9b00e2 commit 2a9682e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/mysagw/oidc_auth/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def _update_or_create_identity(self):
]:
return None
try:
identity = Identity.objects.get(
identity = Identity.objects.filter(is_organisation=False).get(
Q(idp_id=self.id) | Q(email__iexact=self.email),
)
# we only want to save if necessary in order to prevent adding historical
Expand Down

0 comments on commit 2a9682e

Please sign in to comment.