settings: Add can_set_delete_message_policy_group setting.

Adds new organization setting `can_set_delete_message_policy_group`
for defining who can set per-channel message delete permissions.

Fixes #34214.
This commit is contained in:
Vector73
2025-07-17 09:54:52 +00:00
committed by Tim Abbott
parent 97a43fa6b6
commit a02614204a
24 changed files with 382 additions and 1 deletions

View File

@@ -4848,6 +4848,20 @@ paths:
setting controlled this permission; `true` corresponded to `Everyone`, and
`false` to `Admins`.
- $ref: "#/components/schemas/GroupSettingValue"
can_set_delete_message_policy_group:
allOf:
- description: |
A [group-setting value](/api/group-setting-values) defining the set of
users who have permission to change per-channel `can_delete_any_message_group`
and `can_delete_own_message_group` permission settings. Note that the user
must be a member of both this group and the `can_administer_channel_group`
of the channel whose message delete settings they want to change.
Organization administrators can always change these settings of
every channel.
**Changes**: New in Zulip 11.0 (feature level ZF-4ce648).
- $ref: "#/components/schemas/GroupSettingValue"
can_set_topics_policy_group:
allOf:
- description: |
@@ -18312,6 +18326,22 @@ paths:
setting controlled this permission; `true` corresponded to `Everyone`, and
`false` to `Admins`.
- $ref: "#/components/schemas/GroupSettingValue"
realm_can_set_delete_message_policy_group:
allOf:
- description: |
Present if `realm` is present in `fetch_event_types`.
A [group-setting value](/api/group-setting-values) defining the set of
users who have permission to change per-channel `can_delete_any_message_group`
and `can_delete_own_message_group` permission settings. Note that the user
must be a member of both this group and the `can_administer_channel_group`
of the channel whose message delete settings they want to change.
Organization administrators can always change these settings of
every channel.
**Changes**: New in Zulip 11.0 (feature level ZF-4ce648).
- $ref: "#/components/schemas/GroupSettingValue"
realm_can_set_topics_policy_group:
allOf:
- description: |