Skip to content

Commit

Permalink
Reference current_user to detect auth (#1294)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhperry authored Jun 30, 2023
1 parent 8c90eb5 commit 8131c21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupyter_server/base/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ def update_api_activity(self):
# record activity of authenticated requests
if (
self._track_activity
and getattr(self, "_user_cache", None)
and getattr(self, "_jupyter_current_user", None)
and self.get_argument("no_track_activity", None) is None
):
self.settings["api_last_activity"] = utcnow()
Expand Down

0 comments on commit 8131c21

Please sign in to comment.