stream: Rename can_subscribe_others_to_all_streams.

Rename `can_subscribe_others_to_all_streams` to
`can_subscribe_others_to_all_accessible_streams` so it's clear that we
are not attempting to check basic access in this function.
This commit is contained in:
Shubham Padia
2025-01-23 14:37:22 +00:00
committed by Tim Abbott
parent 32f9ee7a62
commit e912ada51e
6 changed files with 6 additions and 6 deletions

View File

@@ -789,7 +789,7 @@ def get_streams_to_which_user_cannot_add_subscribers(
# does not waste database queries re-checking that.
result: list[Stream] = []
if user_profile.can_subscribe_others_to_all_streams():
if user_profile.can_subscribe_others_to_all_accessible_streams():
return []
# Optimization for the organization administrator code path. We