import: Import mattermost admins as Zulip owners.

Otherwise, we violate the invariant that all organizations have an owner.
This commit is contained in:
Tim Abbott 2020-12-17 18:45:33 -08:00
parent d513bb4aa6
commit ed498e2f8e
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ def process_user(user_dict: Dict[str, Any], realm_id: int, team_name: str,
role = UserProfile.ROLE_MEMBER
if is_team_admin(user_dict):
role = UserProfile.ROLE_REALM_ADMINISTRATOR
role = UserProfile.ROLE_REALM_OWNER
if user_dict["is_mirror_dummy"]:
is_active = False