zulip/zerver
sahil839 3df87d0901 stream: Fix error handling in access_stream_for_send_message.
According to tests we should not allow bot without owners to
post in streams with STREAM_POST_POLICY_RESTRICT_NEW_MEMBERS.
But the code does not handle this and the related test passes
and raises error for case of bots without owner because the bot
is itself a new member.

This commit fixes this by adding a condition to check if there
is no bot owner and then raise error if there is no owner.
2021-02-18 18:38:52 -08:00
..
data_import import_util: Strengthen get_users type using a Protocol. 2021-02-15 17:05:28 -08:00
lib stream: Fix error handling in access_stream_for_send_message. 2021-02-18 18:38:52 -08:00
management python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
migrations python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
openapi api docs: Expand checking for deprecated fields. 2021-02-16 15:34:52 -08:00
templatetags python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
tests stream: Fix error handling in access_stream_for_send_message. 2021-02-18 18:38:52 -08:00
tornado event_queue: Remove internal fields being leaked to the API. 2021-02-14 21:42:19 -08:00
views api: Add REST API endpoint for looking up a user by email address. 2021-02-15 17:38:33 -08:00
webhooks webhooks: Strengthen format_pull_request_event type. 2021-02-15 17:05:28 -08:00
worker python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
__init__.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
apps.py python: Reformat with Black, except quotes. 2021-02-12 13:11:19 -08:00
context_processors.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
decorator.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
filters.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
forms.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
logging_handlers.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
middleware.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
models.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
signals.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00