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:
Sahil Batra
2022-07-13 15:45:13 +05:30
committed by Tim Abbott
parent bcef35490d
commit 52c8f687cc
2 changed files with 3 additions and 3 deletions

View File

@@ -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: