Skip to content

Commit

Permalink
Auto-allow people with @alleninstitute.org email addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikoptic committed Oct 15, 2024
1 parent b6767b2 commit a0b467b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dandiapi/api/views/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ def user_questionnaire_form_view(request: HttpRequest) -> HttpResponse:
not questionnaire_already_filled_out
and user_metadata.status == UserMetadata.Status.INCOMPLETE
):
is_edu_email: bool = user.email.endswith('.edu')
is_edu_email: bool = user.email.endswith('.edu') or user.email.endswith(
'@alleninstitute.org'
)

# auto-approve users with edu emails, otherwise require manual approval
user_metadata.status = (
Expand Down

0 comments on commit a0b467b

Please sign in to comment.