make hub-starting user admin by default

This commit is contained in:
MinRK
2014-09-16 16:19:15 -07:00
parent 216f12a5d9
commit 97ac3ebf32

View File

@@ -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)