Merge pull request #132 from minrk/admin-access

add JupyterHub.admin_access
This commit is contained in:
Min RK
2015-01-31 16:48:32 -08:00
8 changed files with 90 additions and 15 deletions

View File

@@ -322,6 +322,12 @@ class JupyterHub(Application):
db = Any()
session_factory = Any()
admin_access = Bool(False, config=True,
help="""Grant admin users permission to access single-user servers.
Users should be properly informed if this is enabled.
"""
)
admin_users = Set(config=True,
help="""set of usernames of admin users
@@ -717,6 +723,7 @@ class JupyterHub(Application):
proxy=self.proxy,
hub=self.hub,
admin_users=self.admin_users,
admin_access=self.admin_access,
authenticator=self.authenticator,
spawner_class=self.spawner_class,
base_url=self.base_url,