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:
Min RK
2021-09-16 11:55:20 +02:00
parent 12ab53fb37
commit 5f19989467
8 changed files with 37 additions and 10 deletions

View File

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