mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +00:00
settings: Use new group setting to check web-public stream creation.
This commit updates code in webapp to use new group-based setting for checking web-public stream creation permission.
This commit is contained in:
@@ -205,7 +205,6 @@ export function dispatch_normal_event(event) {
|
||||
avatar_changes_disabled: settings_account.update_avatar_change_display,
|
||||
bot_creation_policy: settings_bots.update_bot_permissions_ui,
|
||||
create_multiuse_invite_group: noop,
|
||||
create_web_public_stream_policy: noop,
|
||||
invite_to_stream_policy: noop,
|
||||
default_code_block_language: noop,
|
||||
default_language: noop,
|
||||
@@ -266,12 +265,9 @@ export function dispatch_normal_event(event) {
|
||||
gear_menu.rerender();
|
||||
}
|
||||
|
||||
if (
|
||||
event.property === "create_web_public_stream_policy" ||
|
||||
event.property === "enable_spectator_access"
|
||||
) {
|
||||
if (event.property === "enable_spectator_access") {
|
||||
stream_settings_ui.update_stream_privacy_choices(
|
||||
"create_web_public_stream_policy",
|
||||
"can_create_web_public_channel_group",
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -293,7 +289,8 @@ export function dispatch_normal_event(event) {
|
||||
|
||||
if (
|
||||
key === "can_create_public_channel_group" ||
|
||||
key === "can_create_private_channel_group"
|
||||
key === "can_create_private_channel_group" ||
|
||||
key === "can_create_web_public_channel_group"
|
||||
) {
|
||||
stream_settings_ui.update_stream_privacy_choices(key);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user