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}}
2023-06-26 23:38:08 +02:00
<label for="realm_invite_to_realm_policy" class="dropdown-title"> {{ 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>
2023-08-03 16:06:40 +02:00
{{ > ../dropdown_widget_with_label
widget_name="realm_create_multiuse_invite_group"
label=(t 'Who can create reusable invitation links')
value_type="number"}}
2018-04-30 18:26:59 +02:00
<div class="input-group">
2018-05-02 20:03:52 +02:00
<label for="realm_org_join_restrictions" class="dropdown-title"> {{ t "Restrict email domains of new users?" }} </label>
2023-02-16 10:57:08 +01:00
<select name="realm_org_join_restrictions" id="id_realm_org_join_restrictions" class="prop-element settings_select bootstrap-focus-style">
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">
2022-12-13 12:32:01 +01:00
<label for="realm_waiting_period_threshold" class="dropdown-title">
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">
2020-03-23 21:51:27 +01:00
<h3> {{ t "Stream permissions" }} </h3>
{{ > 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">
2019-05-07 19:06:05 +02:00
<div class="input-group">
2021-03-27 05:48:37 +01:00
<label for="realm_create_public_stream_policy" class="dropdown-title"> {{ t "Who can create public streams" }} </label>
2023-02-16 10:57:08 +01:00
<select name="realm_create_public_stream_policy" id="id_realm_create_public_stream_policy" class="prop-element settings_select bootstrap-focus-style" data-setting-widget-type="number">
2021-03-27 05:48:37 +01:00
{{ > dropdown_options_widget option_values = common_policy_values }}
</select>
</div>
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"}}
2021-11-19 10:29:39 +01:00
<div class="input-group realm_create_web_public_stream_policy">
<label for="realm_create_web_public_stream_policy" class="dropdown-title"> {{ t "Who can create web-public streams" }} </label>
2023-02-16 10:57:08 +01:00
<select name="realm_create_web_public_stream_policy" id="id_realm_create_web_public_stream_policy" class="prop-element settings_select bootstrap-focus-style" data-setting-widget-type="number">
2021-11-19 10:29:39 +01:00
{{ > dropdown_options_widget option_values = create_web_public_stream_policy_values }}
</select>
</div>
2021-03-27 05:48:37 +01:00
<div class="input-group">
<label for="realm_create_private_stream_policy" class="dropdown-title"> {{ t "Who can create private streams" }} </label>
2023-02-16 10:57:08 +01:00
<select name="realm_create_private_stream_policy" id="id_realm_create_private_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-05-07 19:06:05 +02:00
</select>
</div>
2019-04-08 19:23:00 +02:00
<div class="input-group">
<label for="realm_invite_to_stream_policy" class="dropdown-title"> {{ t "Who can add users to streams" }} </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">
2023-11-21 10:39:13 +01:00
<label for="realm_wildcard_mention_policy" class="dropdown-title"> {{ 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
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">
2022-08-19 16:14:15 +02:00
<label for="realm_message_content_edit_limit_seconds" class="dropdown-title"> {{ 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>
<div class="input-group">
<label for="realm_edit_topic_policy" class="dropdown-title"> {{ t "Who can move messages to another topic" }} </label>
2023-02-16 10:57:08 +01:00
<select name="realm_edit_topic_policy" id="id_realm_edit_topic_policy" class="prop-element move-message-policy-setting settings_select bootstrap-focus-style" data-setting-widget-type="number">
2022-10-18 19:32:58 +02:00
{{ > dropdown_options_widget option_values = edit_topic_policy_values }}
</select>
</div>
2021-05-25 21:24:12 +02:00
2022-12-22 19:14:23 +01:00
<div class="input-group time-limit-setting">
<label for="realm_move_messages_within_stream_limit_seconds" class="dropdown-title"> {{ 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>
2022-10-18 19:32:58 +02:00
<div class="input-group">
<label for="realm_move_messages_between_streams_policy"> {{ t "Who can move messages to another stream" }}
</label>
2023-02-16 10:57:08 +01:00
<select name="realm_move_messages_between_streams_policy" class="setting-widget prop-element bootstrap-focus-style move-message-policy-setting settings_select" id="id_realm_move_messages_between_streams_policy" data-setting-widget-type="number">
2022-10-18 19:32:58 +02:00
{{ > dropdown_options_widget option_values = move_messages_between_streams_policy_values }}
</select>
2022-10-06 16:28:41 +02:00
</div>
2023-01-30 12:15:36 +01:00
<div class="input-group time-limit-setting">
<label for="realm_move_messages_between_streams_limit_seconds" class="dropdown-title"> {{ t "Time limit for moving messages between streams" }} <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">
<label for="org-msg-deletion" class="inline-block">
{{ t "Administrators can delete any message." }}
</label>
<div class="input-group">
<label for="realm_delete_own_message_policy" class="dropdown-title">
{{ t "Who can delete their own messages" }}
2021-06-08 13:45:14 +02:00
</label>
2023-02-16 10:57:08 +01:00
<select name="realm_delete_own_message_policy" id="id_realm_delete_own_message_policy" class="prop-element bootstrap-focus-style settings_select" data-setting-widget-type="number">
2021-06-23 12:53:38 +02:00
{{ > dropdown_options_widget option_values = common_message_policy_values }}
2021-06-08 13:45:14 +02:00
</select>
</div>
2022-09-02 18:44:37 +02:00
<div class="input-group time-limit-setting">
2022-08-19 16:47:26 +02:00
<label for="realm_message_content_delete_limit_seconds" class="dropdown-title">
2022-12-31 15:54:01 +01:00
{{ t "Time limit for deleting messages" }} <i>( {{ t "does not apply to administrators" }} )</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">
<label for="realm_bot_creation_policy"> {{ 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
2019-11-02 17:58:55 +01:00
<div class="input-group">
<label for="realm_user_group_edit_policy" class="dropdown-title"> {{ t "Who can create and manage user groups" }} </label>
2023-02-16 10:57:08 +01:00
<select name="realm_user_group_edit_policy" id="id_realm_user_group_edit_policy" class="prop-element settings_select bootstrap-focus-style" data-setting-widget-type="number">
2021-06-03 15:47:03 +02:00
{{ > dropdown_options_widget option_values = common_policy_values }}
2019-11-02 17:58:55 +01:00
</select>
</div>
2019-02-07 19:01:37 +01:00
<div class="input-group">
2021-05-04 19:02:24 +02:00
<label for="realm_add_custom_emoji_policy" class="dropdown-title"> {{ t "Who can add custom emoji" }} </label>
2023-02-16 10:57:08 +01:00
<select name="realm_add_custom_emoji_policy" class="setting-widget prop-element settings_select bootstrap-focus-style" id="id_realm_add_custom_emoji_policy" data-setting-widget-type="number">
2021-05-17 19:32:35 +02:00
{{ > dropdown_options_widget option_values = common_policy_values }}
2019-02-07 19:01:37 +01:00
</select>
</div>
2020-01-08 01:49:44 +01:00
<div class="input-group">
2023-01-24 19:49:56 +01:00
<label for="realm_private_message_policy"> {{ t "Who can use direct messages" }} ( {{ t "beta" }} )
2023-02-10 05:58:11 +01:00
{{ > ../help_link_widget link = "/help/restrict-direct-messages" }}
2020-01-08 01:49:44 +01:00
</label>
2023-02-16 10:57:08 +01:00
<select name="realm_private_message_policy" class="setting-widget prop-element settings_select bootstrap-focus-style" id="id_realm_private_message_policy" data-setting-widget-type="number">
2020-01-28 07:51:44 +01:00
{{ > dropdown_options_widget option_values = private_message_policy_values }}
2020-01-08 01:49:44 +01:00
</select>
</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
</form>
</div>