mirror of https://github.com/zulip/zulip.git
9a6886f630
This commit changes the code to always pass delivery_email field in the user's own object in 'realm_users'. This commit also fixes the events sent by notify_created_user. In the "realm_user/add" event sent when creating the user, the delivery_email field was set according to the access for the created user itself as the created user was passed as acting_user to format_user_row. But now since we have changed the code to always allow the user themselves to have access to the email, this bug was caught in tests and we fix the person object in the event to have delivery_email field based on whether the user receiving the event has access to email or not. |
||
---|---|---|
.. | ||
actions | ||
data_import | ||
integration_fixtures/nagios | ||
lib | ||
management | ||
migrations | ||
openapi | ||
tests | ||
tornado | ||
views | ||
webhooks | ||
worker | ||
__init__.py | ||
apps.py | ||
context_processors.py | ||
decorator.py | ||
filters.py | ||
forms.py | ||
logging_handlers.py | ||
middleware.py | ||
models.py | ||
signals.py |