mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 15:33:02 +00:00
make hub-starting user admin by default
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
# Copyright (c) IPython Development Team.
|
# Copyright (c) IPython Development Team.
|
||||||
# Distributed under the terms of the Modified BSD License.
|
# Distributed under the terms of the Modified BSD License.
|
||||||
|
|
||||||
|
import getpass
|
||||||
import io
|
import io
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
@@ -216,10 +217,10 @@ class JupyterHubApp(Application):
|
|||||||
debug_db = Bool(False)
|
debug_db = Bool(False)
|
||||||
db = Any()
|
db = Any()
|
||||||
|
|
||||||
admin_users = Set(config=True,
|
admin_users = Set({getpass.getuser()}, config=True,
|
||||||
help="""list of usernames of admin users
|
help="""list of usernames of admin users
|
||||||
|
|
||||||
If unspecified, all users are admin.
|
If unspecified, only the user that launches the server will be admin.
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
tornado_settings = Dict(config=True)
|
tornado_settings = Dict(config=True)
|
||||||
|
Reference in New Issue
Block a user