mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-15 05:53:00 +00:00
fix metrics_authentication method
This commit is contained in:
@@ -251,8 +251,7 @@ def admin_only(self):
|
|||||||
def metrics_authentication(self):
|
def metrics_authentication(self):
|
||||||
"""Decorator for restricting access to metrics"""
|
"""Decorator for restricting access to metrics"""
|
||||||
user = self.current_user
|
user = self.current_user
|
||||||
authenticate_prometheus = self.authenticate_prometheus
|
if user is None and not self.authenticate_prometheus:
|
||||||
if user is None and not user.authenticate_prometheus:
|
|
||||||
raise web.HTTPError(403)
|
raise web.HTTPError(403)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user