mirror of https://github.com/zulip/zulip.git
Fix logging of requesting user with REST API.
Fixes #1155. (imported from commit b5becb7418ce9577a6bbaa20dcb68a02f1928b9f)
This commit is contained in:
parent
c08a86aeb9
commit
5b51705451
|
@ -114,6 +114,7 @@ def authenticated_rest_api_view(view_func):
|
|||
resp = HttpResponseUnauthorized("humbug")
|
||||
resp.content = e.error
|
||||
return resp
|
||||
request._email = email
|
||||
process_client(request, user_profile)
|
||||
return view_func(request, user_profile, *args, **kwargs)
|
||||
return _wrapped_view_func
|
||||
|
|
Loading…
Reference in New Issue