mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 01:16:19 +00:00
management commands: Fix incorrect use of user_profile.email.
All of these management commands should be interacting with .delivery_email; this results in buggy behavior with EMAIL_ADDRESS_VISIBILITY_ADMINS.
This commit is contained in:
@@ -24,7 +24,7 @@ def sync_ldap_user_data(user_profiles: List[UserProfile]) -> None:
|
||||
try:
|
||||
sync_user_from_ldap(u, logger)
|
||||
except ZulipLDAPException as e:
|
||||
logger.error("Error attempting to update user %s:" % (u.email,))
|
||||
logger.error("Error attempting to update user %s:" % (u.delivery_email,))
|
||||
logger.error(e)
|
||||
logger.info("Finished update.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user