mirror of https://github.com/zulip/zulip.git
1d7d3fae61
Aside of what's generally explained in the code comment, this is motivated by the specific situation of import of Slack Connect channels. These channels contain users who are "external collaborators" and limited to a single channel in Slack. We don't have more sophisticated handling of their import, which would map this concept 1-to-1 in Zulip - but we create them as inactive dummy users, meaning they have to go through signup before their account is usable. The issue is that their imported UserProfile.role is set to Member and when they register, the UserProfile gets reactivated with that role unchanged. However, if e.g. the user is signing up after they received an invitation from the admin, they should get the role that was configured on the invite. In particular important if the user is meant to still be "limited" and thus the admin invites them as a guest - they definitely don't want the user to get a full Member account because of this weird interaction between import and registration. |
||
---|---|---|
.. | ||
actions | ||
data_import | ||
integration_fixtures/nagios | ||
lib | ||
management | ||
migrations | ||
models | ||
openapi | ||
tests | ||
tornado | ||
transaction_tests | ||
views | ||
webhooks | ||
worker | ||
__init__.py | ||
apps.py | ||
context_processors.py | ||
decorator.py | ||
filters.py | ||
forms.py | ||
logging_handlers.py | ||
middleware.py | ||
signals.py |