process_client: Don't update activity of unauthenticated users.

This allows wrapper `add_logging_data` to be used to add
client information for unauthenticated users (or web public guests).
This commit is contained in:
Aman Agrawal 2020-09-22 20:52:07 +05:30 committed by Tim Abbott
parent 6012d3cff2
commit 9cabd8f9cb
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ def process_client(request: HttpRequest, user_profile: UserProfile,
client_name = "website"
request.client = get_client(client_name)
if not skip_update_user_activity:
if not skip_update_user_activity and user_profile.is_authenticated:
update_user_activity(request, user_profile, query)
class InvalidZulipServerError(JsonableError):