Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stream-settings: Keep history checkbox disabled without permission.
Sahil Batra78f562bfe23c
diff --git a/web/src/stream_ui_updates.ts b/web/src/stream_ui_updates.tsindex 0e85cad006c..57aae4e9e67 100644--- a/web/src/stream_ui_updates.ts+++ b/web/src/stream_ui_updates.ts@@ -70,6 +70,12 @@ export function update_history_public_to_subscribers_state(return;}+ if (sub !== undefined && !stream_data.can_change_permissions_requiring_metadata_access(sub)) {+ // The checkbox stays disabled for users who cannot change the+ // channel's permissions.+ return;+ }+let stream_privacy_widget;let can_create_topic_group_widget;if (is_stream_creation) {