Rename 'all' metascope to more descriptive 'inherit'

since it means 'inheriting' the owner's permissions

'all' prompted the question 'all of what, exactly?'

Additionally, fix some NameErrors that should have been KeyErrors
This commit is contained in:
Min RK
2021-10-25 14:35:52 +02:00
parent b2f0208fcc
commit b25517efe8
8 changed files with 33 additions and 29 deletions

View File

@@ -123,13 +123,13 @@ has,
define the `server` role.
To restore the JupyterHub 1.x behavior of servers being able to do anything their owners can do,
use the scope `all`:
use the scope `inherit` (for 'inheriting' the owner's permissions):
```python
c.JupyterHub.load_roles = [
{
'name': 'server',
'scopes': ['all'],
'scopes': ['inherit'],
}
]
```