mirror of
https://github.com/zulip/zulip.git
synced 2026-07-09 21:21:47 +08:00
ldap: Fix incorrect check for deactivating all owners.
We apparently failed to update this when we did the migration from the administrator role to the owner role as the top role in Zulip.
This commit is contained in:
parent
adc646adb8
commit
5db8e43d5c
@ -46,10 +46,10 @@ def sync_ldap_user_data(
|
||||
is_bot=False,
|
||||
is_active=True,
|
||||
realm__string_id=string_id,
|
||||
role__gte=UserProfile.ROLE_REALM_ADMINISTRATOR,
|
||||
role__gte=UserProfile.ROLE_REALM_OWNER,
|
||||
).exists():
|
||||
error_msg = (
|
||||
"Ldap sync would have deactivated all administrators of realm %s. "
|
||||
"Ldap sync would have deactivated all owners of realm %s. "
|
||||
+ "This is most likely due "
|
||||
+ "to a misconfiguration of LDAP settings. Rolling back...\n"
|
||||
+ "Use the --force option if the mass deactivation is intended."
|
||||
|
||||
Loading…
Reference in New Issue
Block a user