Skip to content

Commit

Permalink
re-enable user auth on game load
Browse files Browse the repository at this point in the history
  • Loading branch information
btouellette committed Aug 3, 2020
1 parent b8446c5 commit f9f52ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/gameserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ module.exports = function(server, sessionStore) {
socket.on('load game', function(gameID) {
Gamestate.findById(gameID, function(err, gamestate) {
if(err) { console.log('load find err: ' + err); }
if(gamestate/* && gamestate.userIsInGame(currentUser)*/) {
if(gamestate && gamestate.userIsInGame(currentUser)) {
gamestate.populate('placedTiles.tile activeTile.tile unusedTiles players.user',
'cities.meepleOffset farms.meepleOffset roads.meepleOffset cloister tower.offset imageURL username',
function(err, gamestate) {
Expand Down

0 comments on commit f9f52ff

Please sign in to comment.