issue-3772: populating user_options from orm_spawner

This commit is contained in:
Igor Berman
2022-01-20 18:01:57 +02:00
parent 67ebe0b0cf
commit 64d6f0222c
2 changed files with 3 additions and 2 deletions

View File

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