mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
accounts: Allow user to change email visibility during first login.
We now allow users to change email address visibility setting on the "Terms of service" page during first login. This page is not shown for users creating account using normal registration process, but is useful for imported users and users created through API, LDAP, SCIM and management commands.
This commit is contained in:
@@ -250,7 +250,7 @@ def check_change_bot_full_name(
|
||||
|
||||
|
||||
@transaction.atomic(durable=True)
|
||||
def do_change_tos_version(user_profile: UserProfile, tos_version: str) -> None:
|
||||
def do_change_tos_version(user_profile: UserProfile, tos_version: Optional[str]) -> None:
|
||||
user_profile.tos_version = tos_version
|
||||
user_profile.save(update_fields=["tos_version"])
|
||||
event_time = timezone_now()
|
||||
|
Reference in New Issue
Block a user