mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 23:13:00 +00:00
issue-3772: populating user_options from orm_spawner
This commit is contained in:
@@ -376,6 +376,7 @@ class User:
|
||||
oauth_client_id=client_id,
|
||||
cookie_options=self.settings.get('cookie_options', {}),
|
||||
trusted_alt_names=trusted_alt_names,
|
||||
user_options=orm_spawner.user_options or {},
|
||||
)
|
||||
|
||||
if self.settings.get('internal_ssl'):
|
||||
@@ -600,7 +601,7 @@ class User:
|
||||
spawner.handler = handler
|
||||
|
||||
# Passing user_options to the spawner
|
||||
if options is None:
|
||||
if options is None or options is {}:
|
||||
# options unspecified, load from db which should have the previous value
|
||||
options = spawner.orm_spawner.user_options or {}
|
||||
else:
|
||||
|
Reference in New Issue
Block a user