mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
streams: Rename admin_access_required to unsubscribing_others.
This commit renames admin_access_required parameter of list_to_streams function to unsubscribing_others since that parameter is used and passed as True only when calling the function while unsubscribing others and in further commits we would allow non-admins too to unsubscribe others based on can_remove_subscribers_group setting.
This commit is contained in:
@@ -424,7 +424,7 @@ def remove_subscriptions_backend(
|
||||
streams_as_dict.append({"name": stream_name.strip()})
|
||||
|
||||
streams, __ = list_to_streams(
|
||||
streams_as_dict, user_profile, admin_access_required=removing_someone_else
|
||||
streams_as_dict, user_profile, unsubscribing_others=removing_someone_else
|
||||
)
|
||||
|
||||
if principals:
|
||||
|
||||
Reference in New Issue
Block a user