diff --git a/config/socketio.js b/config/socketio.js index 4adb042..2ce5d25 100644 --- a/config/socketio.js +++ b/config/socketio.js @@ -35,7 +35,7 @@ module.exports = io => { } if (!session || typeof session.user !== 'number') { - if (env === 'staging') { + if (process.env.RANDOM_USER) { return assignRandomUser(socket, next); } else { return next(new Error("Authentication Failed"));