mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
app.user undefined on cold load
This commit is contained in:
@@ -140,7 +140,7 @@ define('forum/topic/posts', [
|
||||
pids.push(posts[i].pid);
|
||||
}
|
||||
|
||||
if (app.user.uid) {
|
||||
if (app.uid) {
|
||||
socket.emit('posts.getPrivileges', pids, function(err, privileges) {
|
||||
if(err) {
|
||||
return app.alertError(err.message);
|
||||
|
||||
Reference in New Issue
Block a user