From a267174a03c99cd75c657610eb8f98d4108d65f4 Mon Sep 17 00:00:00 2001 From: Min RK Date: Mon, 21 Sep 2015 10:52:19 +0200 Subject: [PATCH] Remove implicit admin of launching user instead, warn about missing admins and point to config. --- jupyterhub/app.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/jupyterhub/app.py b/jupyterhub/app.py index 85635291..95d3e023 100644 --- a/jupyterhub/app.py +++ b/jupyterhub/app.py @@ -628,10 +628,8 @@ class JupyterHub(Application): admin_users = self.authenticator.admin_users if not admin_users: - # add current user as admin if there aren't any others - admins = db.query(orm.User).filter(orm.User.admin==True) - if admins.first() is None: - admin_users.add(getuser()) + self.log.warning("No admin users, admin interface will be unavailable.") + self.log.warning("Add any administrative users to `c.Authenticator.admin_users` in config.") new_users = []