mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-07 10:04:07 +00:00
suggest roles instead of admin_users
and make admin link permission check match admin page it would be nice if this could be consolidated (maybe an `admin:ui` permission?)
This commit is contained in:
@@ -2,10 +2,23 @@
|
||||
|
||||
c = get_config() # noqa
|
||||
|
||||
# Add some users.
|
||||
c.JupyterHub.admin_users = {'rhea'}
|
||||
# Add some users
|
||||
c.Authenticator.allowed_users = {'ganymede', 'io', 'rhea'}
|
||||
|
||||
c.JupyterHub.load_roles = [
|
||||
{
|
||||
"name": "user-admin",
|
||||
"scopes": [
|
||||
"admin:groups",
|
||||
"admin:users",
|
||||
"admin:servers",
|
||||
],
|
||||
"users": [
|
||||
"rhea",
|
||||
],
|
||||
}
|
||||
]
|
||||
|
||||
# These environment variables are automatically supplied by the linked postgres
|
||||
# container.
|
||||
import os
|
||||
|
Reference in New Issue
Block a user