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:
Ujjawal Modi
2023-06-27 03:08:08 +05:30
committed by Tim Abbott
parent 77c67464ba
commit ec49c3acc8
15 changed files with 22 additions and 22 deletions

View File

@@ -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(