Sahil Batra
1c933dd231
streams: Include only IDs in default streams data.
...
Clients do not need complete stream objects in the default
streams data since they already have that via streams and
subscriptions data.
2024-12-17 09:40:10 -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
940b7e38f8
stream: Use existing group declarations for can_unsubscribe_others.
...
The test was declaring all groups again and creating them, this commit
ensures that it uses the share-able code.
2024-12-01 19:32:22 -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
Sahil Batra
7a6159eee2
streams: Do not show archived streams in dropdown.
...
Dropdown widget in compose box and in message move modal should
not show archived streams in dropdown as we do not allow sending
messages or moving messages to archived streams.
We need a more focused audit of code for fixing other things
where archived streams are shown.
2024-11-22 10:40:59 -08:00
Sahil Batra
d1e76a9281
streams: Allow admins to unsubscribe others irrespective of setting.
2024-11-21 11:28:54 -08:00
Sahil Batra
7c6110e47a
stream_data: Fix code to check permission for unsubscribe others.
...
We no longer allow admins to unsubscribe others from stream if
they are not allowed as per the can_remove_subscribers_group
setting.
2024-11-19 13:26:42 -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