realm: Add ability to set can_add_subscribers_group in frontend.

The setting is not used anywhere yet either on the frontend or the
backend, we are just adding the ability to change the value of the realm
setting. We have also removed the ability to set
`invite_to_stream_policy` in this commit while it continues being used
to check permissions.
We have changed the label of the setting from `Who can add users to
channels` to `Who can subcribe users to channels` and label_parens_text
as `in addition to organization administrators` as discussed in
https://chat.zulip.org/#narrow/channel/101-design/topic/Can.20subscribe.20other.20users.20on.20user.20profile/near/2039825
This commit is contained in:
Shubham Padia
2025-01-13 13:15:54 +00:00
committed by Tim Abbott
parent 3cdc9d8459
commit 34ade0d9a2
6 changed files with 12 additions and 53 deletions

View File

@@ -213,6 +213,7 @@ export function dispatch_normal_event(event) {
avatar_changes_disabled: settings_account.update_avatar_change_display,
bot_creation_policy: settings_bots.update_bot_permissions_ui,
can_add_custom_emoji_group: noop,
can_add_subscribers_group: noop,
can_create_groups: noop,
can_create_private_channel_group: noop,
can_create_public_channel_group: noop,