mirror of https://github.com/zulip/zulip.git
zilencer: Exclude realm_locally_deleted in get_human_user_realm_uuids.
Just like deactivated realms should be excluded, so should locally deleted realms. In particular, failure to exclude locally deleted realms breaks handle_customer_migration_from_server_to_realms.
This commit is contained in:
parent
be03dabf76
commit
616527e73e
|
@ -915,6 +915,7 @@ def get_human_user_realm_uuids(
|
||||||
query = RemoteRealm.objects.filter(
|
query = RemoteRealm.objects.filter(
|
||||||
server=server,
|
server=server,
|
||||||
realm_deactivated=False,
|
realm_deactivated=False,
|
||||||
|
realm_locally_deleted=False,
|
||||||
registration_deactivated=False,
|
registration_deactivated=False,
|
||||||
is_system_bot_realm=False,
|
is_system_bot_realm=False,
|
||||||
).exclude(
|
).exclude(
|
||||||
|
|
Loading…
Reference in New Issue