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.
This commit is contained in:
Tim Abbott 2019-11-03 16:52:28 -08:00
parent c96762b7a9
commit 4066b58faa

View File

@ -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'),