settings: Make separate section for organization group settings.

Fixes #32214.
This commit is contained in:
Sahil Batra 2024-11-02 08:45:32 +05:30 committed by Tim Abbott
parent 2b636e64ec
commit d63ae11551
1 changed files with 18 additions and 8 deletions

View File

@ -106,6 +106,24 @@
</div>
</div>
<div id="org-group-permissions" class="settings-subsection-parent">
<div class="subsection-header">
<h3>{{t "Group permissions" }}
{{> ../help_link_widget link="/help/manage-user-groups" }}
</h3>
{{> settings_save_discard_widget section_name="group-permissions" }}
</div>
<div class="m-10 inline-block organization-permissions-parent">
{{> group_setting_value_pill_input
setting_name="realm_can_manage_all_groups"
label=(t 'Who can administer all user groups')}}
{{> group_setting_value_pill_input
setting_name="realm_can_create_groups"
label=(t 'Who can create user groups')}}
</div>
</div>
<div id="org-direct-message-permissions" class="settings-subsection-parent">
<div class="subsection-header">
<h3>{{t "Direct message permissions" }}
@ -326,14 +344,6 @@
</select>
</div>
{{> group_setting_value_pill_input
setting_name="realm_can_create_groups"
label=(t 'Who can create user groups')}}
{{> group_setting_value_pill_input
setting_name="realm_can_manage_all_groups"
label=(t 'Who can administer all user groups')}}
{{> group_setting_value_pill_input
setting_name="realm_can_add_custom_emoji_group"
label=(t 'Who can add custom emoji')}}