mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
api: Allow realm_admins to make a stream announcement_only.
This commit is contained in:
committed by
Tim Abbott
parent
bb8577ba94
commit
897ed17f0c
@@ -2977,6 +2977,10 @@ def do_change_stream_web_public(stream: Stream, is_web_public: bool) -> None:
|
||||
stream.is_web_public = is_web_public
|
||||
stream.save(update_fields=['is_web_public'])
|
||||
|
||||
def do_change_stream_announcement_only(stream: Stream, is_announcement_only: bool) -> None:
|
||||
stream.is_announcement_only = is_announcement_only
|
||||
stream.save(update_fields=['is_announcement_only'])
|
||||
|
||||
def do_rename_stream(stream: Stream, new_name: str, log: bool=True) -> Dict[str, str]:
|
||||
old_name = stream.name
|
||||
stream.name = new_name
|
||||
|
||||
Reference in New Issue
Block a user