mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
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:
parent
c96762b7a9
commit
4066b58faa
@ -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'),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user