mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
actions: Refactor functions for stream permission changes.
do_make_stream_web_public and do_change_stream_invite_only seem to contain very similar logic that could just live inside the do_change_stream_permission function that handles all permission changes in one place.
This commit is contained in:
@@ -325,7 +325,10 @@ def update_stream_backend(
|
||||
|
||||
if is_private is not None or is_web_public is not None:
|
||||
do_change_stream_permission(
|
||||
stream, is_private, history_public_to_subscribers, is_web_public
|
||||
stream,
|
||||
invite_only=is_private,
|
||||
history_public_to_subscribers=history_public_to_subscribers,
|
||||
is_web_public=is_web_public,
|
||||
)
|
||||
return json_success()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user