Skip to content

Commit

Permalink
fixup! πŸ›(backend) email invite in receivers language
Browse files Browse the repository at this point in the history
E-mails sent for granting access are sent in the receiving users language. Falling back to system default language.

Co-authored-by: Samuel Paccoud <[email protected]>
  • Loading branch information
rvveber and sampaccoud authored Dec 4, 2024
1 parent 38639c9 commit 62c3dd6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ def test_api_document_invitations_create_privileged_members(

def test_api_document_invitations_create_email_from_senders_language():
"""
The email generated is from the language set on the sending user
When inviting on a document a user who does not exist yet in our database, the invitation email should be sent in the language of the sending user.
"""
user = factories.UserFactory(language="fr-fr")
document = factories.DocumentFactory()
Expand Down

0 comments on commit 62c3dd6

Please sign in to comment.