mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
streams: Allow editing subscriptions in archived channels.
Since this does impact the ability to access the channel's content, it makes sense to permit changing subscriptions, just like other permissions settings on the archived channel.
This commit is contained in:
@@ -313,7 +313,7 @@ def bulk_get_streams(realm: Realm, stream_names: set[str]) -> dict[str, Any]:
|
||||
"upper(zerver_stream.name::text) IN (SELECT upper(name) FROM unnest(%s) AS name)"
|
||||
)
|
||||
return (
|
||||
get_active_streams(realm)
|
||||
get_all_streams(realm, include_archived_channels=True)
|
||||
.select_related("can_send_message_group", "can_send_message_group__named_user_group")
|
||||
.extra(where=[where_clause], params=(list(stream_names),)) # noqa: S610
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user