mirror of https://github.com/zulip/zulip.git
Log client/email in zulip_internal decorator.
(imported from commit 43b7ae75bd5cd3e8a086f82b31507079d999a42b)
This commit is contained in:
parent
b5fbf67511
commit
cf0331018a
|
@ -119,6 +119,9 @@ def zulip_internal(view_func):
|
|||
def _wrapped_view_func(request, *args, **kwargs):
|
||||
if request.user.realm.domain != 'zulip.com':
|
||||
return HttpResponseRedirect(settings.HOME_NOT_LOGGED_IN)
|
||||
|
||||
request._email = request.user.email
|
||||
process_client(request, request.user, "website")
|
||||
return view_func(request, *args, **kwargs)
|
||||
return _wrapped_view_func
|
||||
|
||||
|
|
Loading…
Reference in New Issue