Skip to content

Commit 00572d9

Browse files
authored
Fix migrate mail from non school mails (#817)
1 parent b16033f commit 00572d9

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

app/core/users/endpoints_users.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -704,10 +704,7 @@ async def migrate_mail(
704704
email=mail_migration.new_email,
705705
db=db,
706706
)
707-
if (
708-
user.school_id is not SchoolType.no_school.value
709-
and user.school_id != new_school_id
710-
):
707+
if user.school_id not in (SchoolType.no_school.value, new_school_id):
711708
raise HTTPException(
712709
status_code=400,
713710
detail="New email address is not compatible with the current school",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors = [{ name = "AEECL ECLAIR" }]
66

77
# Hyperion follows Semantic Versioning
88
# https://semver.org/
9-
version = "4.7.4"
9+
version = "4.7.5"
1010
minimal-titan-version-code = 139
1111
requires-python = ">= 3.11, < 3.13"
1212

0 commit comments

Comments
 (0)