mirror of https://github.com/zulip/zulip.git
rocketchat: Treat users with "bot" roles as bots when importing.
We previously relied on `type`, but we have observed bots typed with a `bot` role as well.
This commit is contained in:
parent
34394cec9a
commit
724de9cd49
|
@ -104,6 +104,8 @@ def process_users(
|
|||
realm_owners.append(id)
|
||||
elif "guest" in user_dict["roles"]:
|
||||
role = UserProfile.ROLE_GUEST
|
||||
elif "bot" in user_dict["roles"]:
|
||||
is_bot = True
|
||||
|
||||
if is_bot:
|
||||
bots.append(id)
|
||||
|
|
Loading…
Reference in New Issue