mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
invites: Rename can_invite_others_to_realm local variables.
This commit rename the existing setting `Who can invite users to this organization` to `Who can send email invitations to new users` and also renames all the variables related to this setting that do not require a change to the API. This was done for better code readability as a new setting `Who can create invite links` will be added in future commits.
This commit is contained in:
@@ -801,7 +801,7 @@ class InviteUserTest(InviteUserBase):
|
||||
def test_can_invite_others_to_realm(self) -> None:
|
||||
def validation_func(user_profile: UserProfile) -> bool:
|
||||
user_profile.refresh_from_db()
|
||||
return user_profile.can_invite_others_to_realm()
|
||||
return user_profile.can_invite_users_by_email()
|
||||
|
||||
realm = get_realm("zulip")
|
||||
do_set_realm_property(
|
||||
|
||||
Reference in New Issue
Block a user