mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 00:46:03 +00:00
Access the UserProfile's new email field rather than using User.
This is preparatory for stopping using the User model. (imported from commit a1b0808c8cc2ddd19a25163f91c4f18620c9ce90)
This commit is contained in:
@@ -145,7 +145,7 @@ def authenticate_log_and_execute_json(request, client, view_func, *args, **kwarg
|
||||
return json_error("Not logged in", status=401)
|
||||
request.client = client
|
||||
user_profile = get_user_profile_by_user_id(request.user.id)
|
||||
request._email = user_profile.user.email
|
||||
request._email = user_profile.email
|
||||
update_user_activity(request, user_profile)
|
||||
return view_func(request, user_profile, *args, **kwargs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user