settings: Remove user_group_edit_policy from the frontend.

This commit is contained in:
Shubham Padia 2024-09-17 07:56:38 +00:00 committed by Tim Abbott
parent f0b9d610a5
commit b7764eb6f0
5 changed files with 0 additions and 11 deletions

View File

@ -209,7 +209,6 @@ export function dispatch_normal_event(event) {
allow_edit_history: noop, allow_edit_history: noop,
allow_message_editing: noop, allow_message_editing: noop,
edit_topic_policy: noop, edit_topic_policy: noop,
user_group_edit_policy: user_group_edit.update_group_management_ui,
avatar_changes_disabled: settings_account.update_avatar_change_display, avatar_changes_disabled: settings_account.update_avatar_change_display,
bot_creation_policy: settings_bots.update_bot_permissions_ui, bot_creation_policy: settings_bots.update_bot_permissions_ui,
can_delete_any_message_group: noop, can_delete_any_message_group: noop,

View File

@ -218,7 +218,6 @@ type simple_dropdown_realm_settings = Pick<
typeof realm, typeof realm,
| "realm_create_private_stream_policy" | "realm_create_private_stream_policy"
| "realm_invite_to_stream_policy" | "realm_invite_to_stream_policy"
| "realm_user_group_edit_policy"
| "realm_add_custom_emoji_policy" | "realm_add_custom_emoji_policy"
| "realm_invite_to_realm_policy" | "realm_invite_to_realm_policy"
| "realm_wildcard_mention_policy" | "realm_wildcard_mention_policy"

View File

@ -125,7 +125,6 @@ export function get_org_type_dropdown_options() {
const simple_dropdown_properties = [ const simple_dropdown_properties = [
"realm_invite_to_stream_policy", "realm_invite_to_stream_policy",
"realm_user_group_edit_policy",
"realm_add_custom_emoji_policy", "realm_add_custom_emoji_policy",
"realm_invite_to_realm_policy", "realm_invite_to_realm_policy",
"realm_wildcard_mention_policy", "realm_wildcard_mention_policy",

View File

@ -385,7 +385,6 @@ const realm_schema = z.object({
realm_signup_announcements_stream_id: z.number(), realm_signup_announcements_stream_id: z.number(),
realm_upload_quota_mib: z.nullable(z.number()), realm_upload_quota_mib: z.nullable(z.number()),
realm_url: z.string(), realm_url: z.string(),
realm_user_group_edit_policy: z.number(),
realm_video_chat_provider: z.number(), realm_video_chat_provider: z.number(),
realm_waiting_period_threshold: z.number(), realm_waiting_period_threshold: z.number(),
realm_want_advertise_in_communities_directory: NOT_TYPED_YET, realm_want_advertise_in_communities_directory: NOT_TYPED_YET,

View File

@ -350,13 +350,6 @@
value_type="number" value_type="number"
is_setting_disabled=(not is_owner)}} is_setting_disabled=(not is_owner)}}
<div class="input-group">
<label for="realm_user_group_edit_policy" class="settings-field-label">{{t "Who can create and manage user groups" }}</label>
<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">
{{> dropdown_options_widget option_values=common_policy_values}}
</select>
</div>
<div class="input-group"> <div class="input-group">
<label for="realm_add_custom_emoji_policy" class="settings-field-label">{{t "Who can add custom emoji" }}</label> <label for="realm_add_custom_emoji_policy" class="settings-field-label">{{t "Who can add custom emoji" }}</label>
<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"> <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">