app.user undefined on cold load

v1.18.x
barisusakli 10 years ago
parent c0c85c24cf
commit 76480d4d31

@ -58,7 +58,7 @@ define('forum/topic', [
$(window).trigger('action:topic.loaded');
if (app.user.uid) {
if (app.uid) {
socket.emit('topics.enter', tid, function(err, data) {
if (err) {
return app.alertError(err.message);

@ -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);

Loading…
Cancel
Save