Skip to content

Commit db6b705

Browse files
committed
Reference current_user to detect auth
1 parent 8c90eb5 commit db6b705

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_server/base/handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ def update_api_activity(self):
771771
# record activity of authenticated requests
772772
if (
773773
self._track_activity
774-
and getattr(self, "_user_cache", None)
774+
and self.current_user
775775
and self.get_argument("no_track_activity", None) is None
776776
):
777777
self.settings["api_last_activity"] = utcnow()

0 commit comments

Comments
 (0)