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

@@ -190,7 +190,7 @@ function initialize_left_sidebar() {
}
export function update_invite_user_option() {
if (!settings_data.user_can_invite_others_to_realm()) {
if (!settings_data.user_can_invite_users_by_email()) {
$("#right-sidebar .invite-user-link").hide();
} else {
$("#right-sidebar .invite-user-link").show();