mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user