From ed498e2f8e1d3187436ec61c956bf70efe2047ca Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 17 Dec 2020 18:45:33 -0800 Subject: [PATCH] import: Import mattermost admins as Zulip owners. Otherwise, we violate the invariant that all organizations have an owner. --- zerver/data_import/mattermost.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/data_import/mattermost.py b/zerver/data_import/mattermost.py index db7d123e76..2de37af3f5 100644 --- a/zerver/data_import/mattermost.py +++ b/zerver/data_import/mattermost.py @@ -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