mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-15 05:53:00 +00:00
should_spawn=False when current_user is None (not logged in)
This commit is contained in:
@@ -818,7 +818,7 @@ class UserSpawnHandler(BaseHandler):
|
||||
admin_spawn = False
|
||||
# For non-admins, we should spawn if the user matches
|
||||
# otherwise redirect users to their own server
|
||||
should_spawn = (current_user.name == name)
|
||||
should_spawn = (current_user and current_user.name == name)
|
||||
|
||||
|
||||
if should_spawn:
|
||||
|
Reference in New Issue
Block a user