We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b16033f commit 00572d9Copy full SHA for 00572d9
app/core/users/endpoints_users.py
@@ -704,10 +704,7 @@ async def migrate_mail(
704
email=mail_migration.new_email,
705
db=db,
706
)
707
- if (
708
- user.school_id is not SchoolType.no_school.value
709
- and user.school_id != new_school_id
710
- ):
+ if user.school_id not in (SchoolType.no_school.value, new_school_id):
711
raise HTTPException(
712
status_code=400,
713
detail="New email address is not compatible with the current school",
pyproject.toml
@@ -6,7 +6,7 @@ authors = [{ name = "AEECL ECLAIR" }]
6
7
# Hyperion follows Semantic Versioning
8
# https://semver.org/
9
-version = "4.7.4"
+version = "4.7.5"
10
minimal-titan-version-code = 139
11
requires-python = ">= 3.11, < 3.13"
12
0 commit comments