Commit Graph

15 Commits

Author SHA1 Message Date
Sahil Batra
166d9282b8 streams: Use can_subscribe_group setting for checking permission.
This commit adds code to use can_subscribe_group setting in webapp.

Fixes part of #33417.
2025-02-25 13:17:15 -08:00
Sahil Batra
fbbd36b306 group-settings: Live update permissions panel.
This commit adds code to live update permissions panel when
a group gains permission.
2025-02-04 16:08:58 -08:00
Sahil Batra
071037c55d settings: Show assigned stream permissions in group permissions panel. 2025-01-27 15:32:15 -08:00
Sahil Batra
a5e5a010fe stream-events: Handle update events for deprecated properties.
We just do nothing and avoid any warnings for update events
received for "stream_post_policy" and "is_announcement_only"
properties.
2025-01-07 12:17:37 -08:00
Sahil Batra
1175467d45 stream-settings: Remove code related to stream post policy. 2025-01-07 12:17:37 -08:00
Anders Kaseorg
b19a556982 stream_types: Remove email_address from ApiStreamSubscription.
Commit 432001656e removed this from the
backend.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-30 09:42:26 -08:00
Shubham Padia
173c09e32b stream_events: Loop over stream group settings for update_property. 2024-12-04 12:26:16 -08:00
Shubham Padia
7e92c2ad16 streams: Use can_administer_channel_group to administer channel.
Fixes #31959.
2024-12-03 18:38:25 -08:00
Shubham Padia
dbf9f2d181 stream: Use generic update_stream_permission_group_setting.
We will not have to create a new function for every setting that we add
in the future.
2024-12-01 19:32:22 -08:00
Aman Agrawal
1aee0ef98b stream: Use is_recently_active to check active status. 2024-11-27 17:31:06 -08:00
evykassirer
8fff2fcd3c stream_events: Assume mark_unsusbscribed sub is defined.
THere's only one call to this function, which should have
a defined `sub`, so we can enforce this through typescript
instead of doing an `undefined` check.
2024-11-26 09:18:12 -08:00
evykassirer
12c18a026b stream_events: Remove error for undefined sub, enforce through typescript. 2024-11-26 09:18:12 -08:00
evykassirer
64c8884487 stream_events: Convert module to typescript. 2024-11-26 09:18:12 -08:00
Sahil Batra
5d1de4c037 stream-settings: Use new pills UI for can_remove_subscribers_group. 2024-11-16 17:11:08 -08:00
Anders Kaseorg
687f1b1651 tests: Rename the Node tests to *.cjs.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-11-13 09:18:56 -08:00