zulip/api_docs
Shubham Padia aabf42c2ce stream: Show private channel for their channel admins.
Fixes https://chat.zulip.org/#narrow/channel/101-design/topic/permissions.20for.20admin.20to.20unsubscribe.20others/near/2060197
Non realm admin users were not able to view private channels they were
an administrator of but not subscribed to it. This commit changes that.
We also made changes for those users to be able to see the subscribers
list.

The increase in query count in test_home and test_event_system can be
mitigated by only fetching recursive user group ids when needed within
the `validate_user_access_to_subscribers_helper` function. But that
would require refactoring that function to handle multiple streams and
subscriptions at once, along with changing how that function is used at
different places, which might be an exercise better left as a follow up.
We have optimised the code a little bit by not fetching the group ids in
case the current user is a realm admin.

We are fetching channel_admin_ids and users belonging to
can_add_subscribers_group directly in stream_subscription.py without
using the helper function
`get_user_ids_with_metadata_access_via_permission_groups`. This is due
to a cyclic dependency and we will move `bulk_get_subscriber_peer_info`
to another file in the next commit.
2025-02-11 15:09:16 -08:00
..
include users: Add API endpoint to update_user_backend by real email. 2024-10-22 16:36:38 -07:00
api-doc-template.md api-docs: Move markdown files to top level directory. 2023-02-02 17:25:40 -08:00
api-keys.md api-docs: Use start_tabs formatting and add "Related articles". 2024-02-24 08:14:32 -08:00
changelog.md stream: Show private channel for their channel admins. 2025-02-11 15:09:16 -08:00
client-libraries.md docs: Update CZO links from stream to channel in docs and comments. 2024-06-11 10:44:31 -07:00
configuring-python-bindings.md api_docs: List all Python bindings configuration options. 2024-02-23 09:43:57 -08:00
construct-narrow.md fetch_messages: Add support for empty topic names. 2025-01-07 17:24:00 -08:00
create-scheduled-message.md api-docs: Update descriptive uses of "stream" for channel rename. 2024-05-20 09:31:56 -07:00
create-stream.md api-docs: Update descriptive uses of "stream" for channel rename. 2024-05-20 09:31:56 -07:00
deploying-bots.md api-docs: Add comma to all uses of "e.g." in API docs. 2024-07-05 15:36:24 -07:00
group-setting-values.md api docs: Document mentions more completely. 2025-01-07 12:14:01 -08:00
http-headers.md web: Fix links which were missing trailing slashes. 2024-01-11 13:52:12 -08:00
incoming-webhooks-overview.md api-docs: Add comma to all uses of "e.g." in API docs. 2024-07-05 15:36:24 -07:00
incoming-webhooks-walkthrough.md docs: Remove has_request_variables and REQ. 2024-09-05 16:02:12 -07:00
index.md web: Save a needless 301 redirect from /integrations to /integrations/. 2023-03-24 14:51:01 -07:00
installation-instructions.md api-docs: Use start_tabs formatting and add "Related articles". 2024-02-24 08:14:32 -08:00
integrations-overview.md help and api docs: Modernize and expand introduction to integrations. 2025-01-07 09:30:56 -08:00
message-formatting.md api_docs: Improve topic-permalink docs in /api/message-formatting. 2025-02-05 05:56:46 -08:00
missing.md api-docs: Move markdown files to top level directory. 2023-02-02 17:25:40 -08:00
non-webhook-integrations.md api-docs: Use start_tabs formatting and add "Related articles". 2024-02-24 08:14:32 -08:00
outgoing-webhooks.md typos: Fix typos caught by mwic. 2024-05-20 13:55:00 -07:00
real-time-events.md api-docs: Update descriptive uses of "stream" for channel rename. 2024-05-20 09:31:56 -07:00
rest-error-handling.md api-docs: Add comma to all uses of "e.g." in API docs. 2024-07-05 15:36:24 -07:00
rest.md api-docs: Add comma to all uses of "e.g." in API docs. 2024-07-05 15:36:24 -07:00
roles-and-permissions.md help: Adjust links and text for "/help/channels-permissions". 2025-01-07 13:41:40 -08:00
running-bots.md api-docs: Add comma to all uses of "e.g." in API docs. 2024-07-05 15:36:24 -07:00
send-message.md api-docs: Update descriptive uses of "stream" for channel rename. 2024-05-20 09:31:56 -07:00
sidebar_index.md groups: Pass old setting value for can_mention_group. 2024-05-14 12:17:15 -07:00
writing-bots.md typos: Fix typos caught by typos and mwic. 2024-12-24 19:15:36 -08:00