fixed a bug where anonymous users couldnt access topics

v1.18.x
psychobunny 12 years ago
parent ebaa69d987
commit 69565b0ded

@ -172,7 +172,7 @@ passport.deserializeUser(function(uid, done) {
case 'topic' :
global.modules.posts.get(function(data) {
res.send(JSON.stringify(data));
}, req.params.id, req.user.uid || 0);
}, req.params.id, (req.user) ? req.user.uid : 0);
break;
default :
res.send('{}');

Loading…
Cancel
Save