mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
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:
committed by
Tim Abbott
parent
32f9ee7a62
commit
e912ada51e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user