message: Use new setting for checking stream posting permissions.

This commit is contained in:
Sahil Batra
2024-12-11 19:47:39 +05:30
committed by Tim Abbott
parent 101e94b052
commit 2d09cd899e
12 changed files with 316 additions and 366 deletions

View File

@@ -379,11 +379,6 @@ python_rules = RuleList(
{
"pattern": "get_stream[(]",
"include_only": {"zerver/views/", "zerver/actions/"},
"exclude_line": {
# This one in check_message is kinda terrible, since it's
# how most instances are written, but better to exclude something than nothing
("zerver/actions/message_send.py", "stream = get_stream(stream_name, realm)"),
},
"description": "Please use access_stream_by_*() to fetch Stream objects",
},
{