2017-05-18 14:06:57 +02:00
<div id="organization-permissions" data-name="organization-permissions" class="settings-section">
2023-01-10 11:33:08 +01:00
<form class="admin-realm-form org-permissions-form">
2017-05-18 14:06:57 +02:00
2022-12-07 12:16:37 +01:00
<div id="org-join-settings" class="settings-subsection-parent">
2018-03-20 23:18:34 +01:00
<div class="subsection-header">
2023-01-07 00:08:46 +01:00
<h3>
{{ t "Joining the organization" }}
2023-01-07 00:11:45 +01:00
<i class="fa fa-info-circle settings-info-icon tippy-zulip-tooltip" aria-hidden="true" data-tippy-content=" {{ t 'Only owners can change these settings.' }} "></i>
2023-01-07 00:08:46 +01:00
</h3>
2022-12-08 15:59:19 +01:00
{{ > settings_save_discard_widget section_name = "join-settings" }}
2017-05-18 14:06:57 +02:00
</div>
2018-04-05 00:54:31 +02:00
<div class="m-10 inline-block organization-permissions-parent">
<div class="input-group">
2022-09-13 09:19:08 +02:00
{{ > settings_checkbox
setting_name="realm_invite_required"
prefix="id_"
is_checked=realm_invite_required
label=admin_settings_label.realm_invite_required}}
2024-03-29 07:54:50 +01:00
<label for="realm_invite_to_realm_policy" class="settings-field-label"> {{ t "Who can send email invitations to new users" }}
2021-07-19 11:47:42 +02:00
</label>
2023-02-16 10:57:08 +01:00
<select name="realm_invite_to_realm_policy" id="id_realm_invite_to_realm_policy" class="prop-element settings_select bootstrap-focus-style" data-setting-widget-type="number">
2021-07-18 18:18:28 +02:00
{{ > dropdown_options_widget option_values = in vite_to_realm_policy_values }}
2018-04-30 18:26:59 +02:00
</select>
</div>
2024-10-30 04:16:57 +01:00
{{ > group_setting_value_pill_input
setting_name="realm_create_multiuse_invite_group"
label=(t 'Who can create reusable invitation links')}}
2023-08-03 16:06:40 +02:00
2018-04-30 18:26:59 +02:00
<div class="input-group">
2024-10-14 14:32:45 +02:00
<label for="realm_org_join_restrictions" class="settings-field-label"> {{ t "Restrict email domains of new users" }} </label>
2024-05-21 17:59:05 +02:00
<select name="realm_org_join_restrictions" id="id_realm_org_join_restrictions" class="prop-element settings_select bootstrap-focus-style" data-setting-widget-type="string">
2018-04-05 00:54:31 +02:00
<option value="no_restriction"> {{ t "No restrictions" }} </option>
<option value="no_disposable_email"> {{ t "Don’ t allow disposable email addresses" }} </option>
<option value="only_selected_domain"> {{ t "Restrict to a list of domains" }} </option>
</select>
2022-11-21 11:39:51 +01:00
<div class="dependent-settings-block">
2022-08-31 20:16:01 +02:00
<p id="allowed_domains_label" class="inline-block"></p>
2021-07-29 13:53:27 +02:00
{{ # if is_owner }}
2022-08-31 20:16:01 +02:00
<a id="show_realm_domains_modal" role="button"> {{ t "[Configure]" }} </a>
{{ / if }}
</div>
2018-03-20 23:18:34 +01:00
</div>
2022-12-12 18:21:08 +01:00
<div class="input-group time-limit-setting">
2024-03-29 07:54:50 +01:00
<label for="realm_waiting_period_threshold" class="settings-field-label">
2020-03-23 21:51:27 +01:00
{{ t "Waiting period before new members turn into full members" }}
2020-05-15 20:43:31 +02:00
{{ > ../help_link_widget link = "/help/restrict-permissions-of-new-members" }}
2020-03-23 21:51:27 +01:00
</label>
2023-02-16 10:57:08 +01:00
<select name="realm_waiting_period_threshold" id="id_realm_waiting_period_threshold" class="prop-element settings_select bootstrap-focus-style" data-setting-widget-type="time-limit">
2022-12-12 18:21:08 +01:00
{{ > dropdown_options_widget option_values = waiting_period_threshold_dropdown_values }}
2020-03-23 21:51:27 +01:00
</select>
2022-12-09 15:42:11 +01:00
{{!-- This setting is hidden unless `custom_period` --}}
2022-11-21 11:39:51 +01:00
<div class="dependent-settings-block">
2022-12-13 12:32:01 +01:00
<label for="id_realm_waiting_period_threshold_custom_input" class="inline-block"> {{ t "Waiting period (days)" }} :</label>
<input type="text" id="id_realm_waiting_period_threshold_custom_input"
name="realm_waiting_period_threshold_custom_input"
2023-01-16 10:46:45 +01:00
class="time-limit-custom-input"
2022-08-31 20:16:01 +02:00
value=" {{ realm_waiting_period_threshold }} "/>
</div>
2020-03-23 21:51:27 +01:00
</div>
2017-05-18 14:06:57 +02:00
</div>
2017-07-12 23:32:14 +02:00
</div>
2017-05-18 14:06:57 +02:00
2022-11-03 13:18:42 +01:00
<div id="org-stream-permissions" class="settings-subsection-parent">
2018-03-20 23:18:34 +01:00
<div class="subsection-header">
2024-04-18 15:20:36 +02:00
<h3> {{ t "Channel permissions" }} </h3>
2020-03-23 21:51:27 +01:00
{{ > settings_save_discard_widget section_name = "stream-permissions" }}
2017-08-18 01:23:55 +02:00
</div>
2018-03-20 23:18:34 +01:00
<div class="m-10 inline-block organization-permissions-parent">
2024-10-30 04:16:57 +01:00
{{ > group_setting_value_pill_input
setting_name="realm_can_create_public_channel_group"
label=(t 'Who can create public channels')}}
2024-05-31 09:49:10 +02:00
2022-05-26 11:43:42 +02:00
{{ > upgrade_tip_widget }}
2021-10-03 14:16:07 +02:00
{{ > settings_checkbox
setting_name="realm_enable_spectator_access"
prefix="id_"
is_checked=realm_enable_spectator_access
2021-12-02 19:18:32 +01:00
label=admin_settings_label.realm_enable_spectator_access
is_disabled=disable_enable_spectator_access_setting
2022-05-04 20:18:08 +02:00
help_link="/help/public-access-option"}}
2024-07-26 05:42:14 +02:00
{{ > ../dropdown_widget_with_label
widget_name="realm_can_create_web_public_channel_group"
label=(t 'Who can create web-public channels')
value_type="number"}}
2024-06-17 16:06:49 +02:00
2024-10-30 04:16:57 +01:00
{{ > group_setting_value_pill_input
setting_name="realm_can_create_private_channel_group"
label=(t 'Who can create private channels')}}
2024-06-17 16:06:49 +02:00
2019-04-08 19:23:00 +02:00
<div class="input-group">
2024-03-29 07:54:50 +01:00
<label for="realm_invite_to_stream_policy" class="settings-field-label"> {{ t "Who can add users to channels" }} </label>
2023-02-16 10:57:08 +01:00
<select name="realm_invite_to_stream_policy" id="id_realm_invite_to_stream_policy" class="prop-element settings_select bootstrap-focus-style" data-setting-widget-type="number">
2021-04-28 20:39:24 +02:00
{{ > dropdown_options_widget option_values = common_policy_values }}
2019-04-08 19:23:00 +02:00
</select>
</div>
2020-09-11 16:11:06 +02:00
<div class="input-group">
2024-03-29 07:54:50 +01:00
<label for="realm_wildcard_mention_policy" class="settings-field-label"> {{ t "Who can notify a large number of users with a wildcard mention" }}
2021-11-12 20:33:35 +01:00
{{ > ../help_link_widget link = "/help/restrict-wildcard-mentions" }}
</label>
2023-02-16 10:57:08 +01:00
<select name="realm_wildcard_mention_policy" id="id_realm_wildcard_mention_policy" class="prop-element settings_select bootstrap-focus-style" data-setting-widget-type="number">
2020-09-11 16:11:06 +02:00
{{ > dropdown_options_widget option_values = wildcard_mention_policy_values }}
</select>
</div>
2020-03-23 21:51:27 +01:00
</div>
</div>
2019-04-08 19:23:00 +02:00
2024-07-08 19:00:08 +02:00
<div id="org-direct-message-permissions" class="settings-subsection-parent">
<div class="subsection-header">
<h3> {{ t "Direct message permissions" }}
{{ > ../help_link_widget link = "/help/restrict-direct-messages" }}
</h3>
{{ > settings_save_discard_widget section_name = "direct-message-permissions" }}
</div>
2024-10-29 14:29:02 +01:00
{{ > group_setting_value_pill_input
setting_name="realm_direct_message_permission_group"
label=(t 'Who can authorize a direct message conversation')}}
{{ > group_setting_value_pill_input
setting_name="realm_direct_message_initiator_group"
label=(t 'Who can start a direct message conversation')}}
2024-07-08 19:00:08 +02:00
</div>
2022-11-03 13:18:42 +01:00
<div id="org-msg-editing" class="settings-subsection-parent">
2021-05-25 21:24:12 +02:00
<div class="subsection-header">
2022-10-18 19:32:58 +02:00
<h3> {{ t "Message editing" }}
2023-02-09 05:17:34 +01:00
{{ > ../help_link_widget link = "/help/restrict-message-editing-and-deletion" }}
2021-05-25 21:24:12 +02:00
</h3>
{{ > settings_save_discard_widget section_name = "msg-editing" }}
</div>
<div class="inline-block organization-settings-parent">
2022-04-12 09:56:58 +02:00
{{ > settings_checkbox
setting_name="realm_allow_message_editing"
prefix="id_"
is_checked=realm_allow_message_editing
label=admin_settings_label.realm_allow_message_editing}}
2022-10-18 19:32:58 +02:00
{{ > settings_checkbox
setting_name="realm_allow_edit_history"
prefix="id_"
is_checked=realm_allow_edit_history
label=admin_settings_label.realm_allow_edit_history}}
2022-09-02 18:44:37 +02:00
<div class="input-group time-limit-setting">
2024-03-29 07:54:50 +01:00
<label for="realm_message_content_edit_limit_seconds" class="settings-field-label"> {{ t "Time limit for editing messages" }} </label>
2023-02-16 10:57:08 +01:00
<select name="realm_message_content_edit_limit_seconds" id="id_realm_message_content_edit_limit_seconds" class="prop-element settings_select bootstrap-focus-style" {{ # unless realm_allow_message_editing }} disabled {{ / unless }} data-setting-widget-type="time-limit">
2021-05-25 21:24:12 +02:00
{{ # each msg_edit_limit_dropdown_values }}
2022-09-01 14:19:14 +02:00
<option value=" {{ value }} "> {{ text }} </option>
2021-05-25 21:24:12 +02:00
{{ / each }}
</select>
2022-11-21 11:39:51 +01:00
<div class="dependent-settings-block">
2022-08-31 20:16:01 +02:00
<label for="id_realm_message_content_edit_limit_minutes" class="inline-block realm-time-limit-label">
{{ t 'Duration editing is allowed after posting (minutes)' }} :
</label>
<input type="text" id="id_realm_message_content_edit_limit_minutes"
name="realm_message_content_edit_limit_minutes"
2023-01-16 10:46:45 +01:00
class="time-limit-custom-input"
2022-08-31 20:16:01 +02:00
autocomplete="off"
value=" {{ realm_message_content_edit_limit_minutes }} "
{{ # unless realm_allow_message_editing }} disabled {{ / unless }} />
</div>
2021-05-25 21:24:12 +02:00
</div>
2022-10-18 19:32:58 +02:00
</div>
</div>
2021-05-25 21:24:12 +02:00
2022-10-18 19:32:58 +02:00
<div id="org-moving-msgs" class="settings-subsection-parent">
<div class="subsection-header">
<h3> {{ t "Moving messages" }}
2023-03-31 23:17:57 +02:00
{{ > ../help_link_widget link = "/help/restrict-moving-messages" }}
2022-10-18 19:32:58 +02:00
</h3>
{{ > settings_save_discard_widget section_name = "moving-msgs" }}
</div>
2024-10-27 17:01:01 +01:00
2024-10-30 07:50:59 +01:00
{{ > group_setting_value_pill_input
setting_name="realm_can_move_messages_between_topics_group"
label=(t 'Who can move messages to another topic')}}
2021-05-25 21:24:12 +02:00
2022-12-22 19:14:23 +01:00
<div class="input-group time-limit-setting">
2024-03-29 07:54:50 +01:00
<label for="realm_move_messages_within_stream_limit_seconds" class="settings-field-label"> {{ t "Time limit for editing topics" }} <i>( {{ t "does not apply to moderators and administrators" }} )</i></label>
2023-02-16 10:57:08 +01:00
<select name="realm_move_messages_within_stream_limit_seconds" id="id_realm_move_messages_within_stream_limit_seconds" class="prop-element settings_select" data-setting-widget-type="time-limit">
2022-12-22 19:14:23 +01:00
{{ # each msg_move_limit_dropdown_values }}
<option value=" {{ value }} "> {{ text }} </option>
{{ / each }}
</select>
<div class="dependent-settings-block">
<label for="id_realm_move_messages_within_stream_limit_minutes" class="inline-block realm-time-limit-label">
{{ t 'Duration editing is allowed after posting (minutes)' }} :
</label>
<input type="text" id="id_realm_move_messages_within_stream_limit_minutes"
name="realm_move_messages_within_stream_limit_minutes"
class="time-limit-custom-input"
autocomplete="off"/>
</div>
</div>
2024-10-30 07:50:59 +01:00
{{ > group_setting_value_pill_input
setting_name="realm_can_move_messages_between_channels_group"
label=(t 'Who can move messages to another channel')}}
2023-01-30 12:15:36 +01:00
<div class="input-group time-limit-setting">
2024-03-29 07:54:50 +01:00
<label for="realm_move_messages_between_streams_limit_seconds" class="settings-field-label"> {{ t "Time limit for moving messages between channels" }} <i>( {{ t "does not apply to moderators and administrators" }} )</i></label>
2023-02-16 10:57:08 +01:00
<select name="realm_move_messages_between_streams_limit_seconds" id="id_realm_move_messages_between_streams_limit_seconds" class="prop-element bootstrap-focus-style settings_select" data-setting-widget-type="time-limit">
2023-01-30 12:15:36 +01:00
{{ # each msg_move_limit_dropdown_values }}
<option value=" {{ value }} "> {{ text }} </option>
{{ / each }}
</select>
<div class="dependent-settings-block">
<label for="id_realm_move_messages_between_streams_limit_minutes" class="inline-block realm-time-limit-label">
{{ t 'Duration editing is allowed after posting (minutes)' }} :
</label>
<input type="text" id="id_realm_move_messages_between_streams_limit_minutes"
name="realm_move_messages_between_streams_limit_minutes"
class="time-limit-custom-input"
autocomplete="off"/>
</div>
</div>
2022-10-06 16:28:41 +02:00
</div>
2022-11-03 13:18:42 +01:00
<div id="org-msg-deletion" class="settings-subsection-parent">
2022-10-06 16:28:41 +02:00
<div class="subsection-header">
<h3> {{ t "Message deletion" }}
2023-08-29 03:09:41 +02:00
{{ > ../help_link_widget link = "/help/delete-a-message" }}
2022-10-06 16:28:41 +02:00
</h3>
{{ > settings_save_discard_widget section_name = "msg-deletion" }}
</div>
<div class="inline-block organization-settings-parent">
2024-10-30 08:15:27 +01:00
{{ > group_setting_value_pill_input
setting_name="realm_can_delete_any_message_group"
label=(t 'Who can delete any message')}}
2024-08-15 07:29:15 +02:00
2024-10-30 08:15:27 +01:00
{{ > group_setting_value_pill_input
setting_name="realm_can_delete_own_message_group"
label=(t 'Who can delete their own messages')}}
2021-06-08 13:45:14 +02:00
2022-09-02 18:44:37 +02:00
<div class="input-group time-limit-setting">
2024-03-29 07:54:50 +01:00
<label for="realm_message_content_delete_limit_seconds" class="settings-field-label">
2024-08-15 07:29:15 +02:00
{{ t "Time limit for deleting messages" }} <i>( {{ t "does not apply to users who can delete any message" }} )</i>
2021-05-25 21:24:12 +02:00
</label>
2023-02-16 10:57:08 +01:00
<select name="realm_message_content_delete_limit_seconds" id="id_realm_message_content_delete_limit_seconds" class="prop-element bootstrap-focus-style settings_select" data-setting-widget-type="time-limit">
2021-05-25 21:24:12 +02:00
{{ # each msg_delete_limit_dropdown_values }}
2022-09-01 14:19:14 +02:00
<option value=" {{ value }} "> {{ text }} </option>
2021-05-25 21:24:12 +02:00
{{ / each }}
</select>
2022-11-21 11:39:51 +01:00
<div class="dependent-settings-block">
2022-08-31 20:16:01 +02:00
<label for="id_realm_message_content_delete_limit_minutes" class="inline-block realm-time-limit-label">
{{ t "Duration deletion is allowed after posting (minutes)" }} :
</label>
<input type="text" id="id_realm_message_content_delete_limit_minutes"
name="realm_message_content_delete_limit_minutes"
2023-01-16 10:46:45 +01:00
class="time-limit-custom-input"
2022-08-31 20:16:01 +02:00
autocomplete="off"
value=" {{ realm_message_content_delete_limit_minutes }} "/>
</div>
2021-05-25 21:24:12 +02:00
</div>
</div>
</div>
2023-11-23 08:40:42 +01:00
<div id="org-user-identity" class="settings-subsection-parent">
<div class="subsection-header">
2024-04-03 16:21:52 +02:00
<h3> {{ t "User identity" }}
{{ > ../help_link_widget link = "/help/restrict-name-and-email-changes" }}
</h3>
2023-11-23 08:40:42 +01:00
{{ > settings_save_discard_widget section_name = "user-identity" }}
</div>
<div class="inline-block organization-permissions-parent">
2024-03-11 20:02:05 +01:00
{{ > settings_checkbox
setting_name="realm_require_unique_names"
prefix="id_"
is_checked=realm_require_unique_names
label=admin_settings_label.realm_require_unique_names}}
2023-11-23 08:40:42 +01:00
{{ > settings_checkbox
setting_name="realm_name_changes_disabled"
prefix="id_"
is_checked=realm_name_changes_disabled
label=admin_settings_label.realm_name_changes_disabled}}
{{ > settings_checkbox
setting_name="realm_email_changes_disabled"
prefix="id_"
is_checked=realm_email_changes_disabled
label=admin_settings_label.realm_email_changes_disabled}}
{{ > settings_checkbox
setting_name="realm_avatar_changes_disabled"
prefix="id_"
is_checked=realm_avatar_changes_disabled
label=admin_settings_label.realm_avatar_changes_disabled}}
</div>
</div>
<div id="org-guest-settings" class="settings-subsection-parent">
<div class="subsection-header">
<h3> {{ t "Guests" }} </h3>
{{ > settings_save_discard_widget section_name = "guest-settings" }}
</div>
<div class="inline-block organization-permissions-parent">
{{ > settings_checkbox
setting_name="realm_enable_guest_user_indicator"
prefix="id_"
is_checked=realm_enable_guest_user_indicator
label=admin_settings_label.realm_enable_guest_user_indicator}}
2023-11-23 10:14:35 +01:00
2023-11-28 10:07:51 +01:00
{{ > ../dropdown_widget_with_label
widget_name="realm_can_access_all_users_group"
2023-12-10 08:59:11 +01:00
label=(t 'Who can view all other users in the organization')
2023-12-11 11:27:02 +01:00
value_type="number"
help_link="/help/guest-users#configure-whether-guests-can-see-all-other-users"}}
2023-11-28 10:07:51 +01:00
</div>
2023-11-23 08:40:42 +01:00
</div>
2022-11-03 13:18:42 +01:00
<div id="org-other-permissions" class="settings-subsection-parent">
2020-03-23 21:51:27 +01:00
<div class="subsection-header">
<h3> {{ t "Other permissions" }} </h3>
{{ > settings_save_discard_widget section_name = "other-permissions" }}
</div>
<div class="m-10 inline-block organization-permissions-parent">
2018-03-20 23:18:34 +01:00
<div class="input-group">
2024-03-29 11:20:36 +01:00
<label for="realm_bot_creation_policy" class="settings-field-label"> {{ t "Who can add bots" }} </label>
2023-02-16 10:57:08 +01:00
<select name="realm_bot_creation_policy" class="setting-widget prop-element settings_select bootstrap-focus-style" id="id_realm_bot_creation_policy" data-setting-widget-type="number">
2020-01-22 19:01:51 +01:00
{{ > dropdown_options_widget option_values = bot_creation_policy_values }}
2018-03-20 23:18:34 +01:00
</select>
</div>
2018-01-29 16:10:54 +01:00
2024-10-30 04:16:57 +01:00
{{ > group_setting_value_pill_input
setting_name="realm_can_create_groups"
label=(t 'Who can create user groups')}}
2024-09-12 04:54:42 +02:00
2024-10-30 04:16:57 +01:00
{{ > group_setting_value_pill_input
setting_name="realm_can_manage_all_groups"
label=(t 'Who can manage user groups')}}
2024-09-16 21:02:46 +02:00
2024-10-29 11:29:01 +01:00
{{ > group_setting_value_pill_input
setting_name="realm_can_add_custom_emoji_group"
label=(t 'Who can add custom emoji')}}
2017-05-18 14:06:57 +02:00
</div>
2017-07-12 23:32:14 +02:00
</div>
2017-05-18 14:06:57 +02:00
</form>
</div>