Log client/email in zulip_internal decorator.

(imported from commit 43b7ae75bd5cd3e8a086f82b31507079d999a42b)
This commit is contained in:
Steve Howell 2013-10-22 15:03:34 -04:00
parent b5fbf67511
commit cf0331018a
1 changed files with 3 additions and 0 deletions

View File

@ -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