mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 00:15:46 +01:00
added global loggedIn to templates'
This commit is contained in:
@@ -36,7 +36,10 @@ var socket,
|
|||||||
app.uid = data.uid;
|
app.uid = data.uid;
|
||||||
app.isAdmin = data.isAdmin;
|
app.isAdmin = data.isAdmin;
|
||||||
|
|
||||||
|
templates.setGlobal('loggedIn', parseInt(data.uid, 10) !== 0);
|
||||||
|
|
||||||
app.showLoginMessage();
|
app.showLoginMessage();
|
||||||
|
|
||||||
socket.emit('meta.updateHeader', {
|
socket.emit('meta.updateHeader', {
|
||||||
fields: ['username', 'picture', 'userslug']
|
fields: ['username', 'picture', 'userslug']
|
||||||
}, app.updateHeader);
|
}, app.updateHeader);
|
||||||
|
|||||||
Reference in New Issue
Block a user