From 1a6b16d49399cde7799e6d364e81f7ed00b9f4f3 Mon Sep 17 00:00:00 2001 From: tuhina2020 Date: Mon, 15 Oct 2018 11:27:11 +0530 Subject: [PATCH] fix metrics_authentication method --- jupyterhub/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jupyterhub/utils.py b/jupyterhub/utils.py index e70e0db4..88a0ff4d 100644 --- a/jupyterhub/utils.py +++ b/jupyterhub/utils.py @@ -251,8 +251,7 @@ def admin_only(self): def metrics_authentication(self): """Decorator for restricting access to metrics""" user = self.current_user - authenticate_prometheus = self.authenticate_prometheus - if user is None and not user.authenticate_prometheus: + if user is None and not self.authenticate_prometheus: raise web.HTTPError(403)