mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-29 17:00:02 +02:00
Merge branch 'main' into nmb/email-fix
This commit is contained in:
commit
2211cb2bc0
1 changed files with 2 additions and 1 deletions
|
@ -91,7 +91,8 @@ class User(AbstractUser):
|
||||||
|
|
||||||
# A new incoming user who is being invited to be a domain manager (that is,
|
# A new incoming user who is being invited to be a domain manager (that is,
|
||||||
# their email address is in DomainInvitation for an invitation that is not yet "retrieved").
|
# their email address is in DomainInvitation for an invitation that is not yet "retrieved").
|
||||||
if DomainInvitation.objects.filter(email=email, status=DomainInvitation.INVITED).exists():
|
invited = DomainInvitation.DomainInvitationStatus.INVITED
|
||||||
|
if DomainInvitation.objects.filter(email=email, status=invited).exists():
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue