mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 11:52:01 +00:00
streams: Remove dependency of streams on actions.
Refactored code in actions.py and streams.py to move stream related functions into streams.py and remove the dependency on actions.py. validate_sender_can_write_to_stream function in actions.py was renamed to access_stream_for_send_message in streams.py.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
from argparse import ArgumentParser
|
||||
from typing import Any
|
||||
|
||||
from zerver.lib.actions import create_stream_if_needed
|
||||
from zerver.lib.management import ZulipBaseCommand
|
||||
from zerver.lib.streams import create_stream_if_needed
|
||||
|
||||
|
||||
class Command(ZulipBaseCommand):
|
||||
|
||||
Reference in New Issue
Block a user