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:
Mateusz Mandera 2024-02-18 01:04:47 +01:00 committed by Tim Abbott
parent be03dabf76
commit 616527e73e
1 changed files with 1 additions and 0 deletions

View File

@ -915,6 +915,7 @@ def get_human_user_realm_uuids(
query = RemoteRealm.objects.filter(
server=server,
realm_deactivated=False,
realm_locally_deleted=False,
registration_deactivated=False,
is_system_bot_realm=False,
).exclude(