Skip to content

Commit

Permalink
add clarifying comment about deleted users
Browse files Browse the repository at this point in the history
  • Loading branch information
breedenc committed Nov 17, 2023
1 parent df5f858 commit 983c375
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/lambdas/api/authorizer/authorizer/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ def _get_update_or_create_user(email: str) -> User:
user = _get_user(email)

# If user is soft-deleted, return None so that auth fails
# this should never occur in practice because user email is modified with a suffix of "_DELETED_{timestamp}" at deletion, but it is ok to retain this check
if user and user.deleted:
return None

Expand Down

0 comments on commit 983c375

Please sign in to comment.