From 4066b58faa3f98343b03c19ebbbf35575c229c64 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sun, 3 Nov 2019 16:52:28 -0800 Subject: [PATCH] send_message: Remove long-obsolete comment about @require_login. All of our view functions work this way, so it doesn't need a special comment. --- zerver/views/messages.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/zerver/views/messages.py b/zerver/views/messages.py index 622e12fce1..83ea70a78b 100644 --- a/zerver/views/messages.py +++ b/zerver/views/messages.py @@ -1270,10 +1270,6 @@ def handle_deferred_message(sender: UserProfile, client: Client, forwarder_user_profile=forwarder_user_profile) return json_success({"deliver_at": str(deliver_at_usertz)}) -# We do not @require_login for send_message_backend, since it is used -# both from the API and the web service. Code calling -# send_message_backend should either check the API key or check that -# the user is logged in. @has_request_variables def send_message_backend(request: HttpRequest, user_profile: UserProfile, message_type_name: str=REQ('type'),