mirror of https://github.com/zulip/zulip.git
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:
parent
6012d3cff2
commit
9cabd8f9cb
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue