should_spawn=False when current_user is None (not logged in)

This commit is contained in:
Min RK
2018-02-28 15:56:19 +01:00
parent 5bf1aac9cb
commit 19f02da64d

View File

@@ -818,7 +818,7 @@ class UserSpawnHandler(BaseHandler):
admin_spawn = False admin_spawn = False
# For non-admins, we should spawn if the user matches # For non-admins, we should spawn if the user matches
# otherwise redirect users to their own server # 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: if should_spawn: