mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-14 13:33:00 +00:00
fix metrics_authentication method
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user