mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
closes #2659
This commit is contained in:
@@ -25,7 +25,7 @@ module.exports = function(middleware) {
|
||||
options = {};
|
||||
}
|
||||
|
||||
options.loggedIn = req.user ? parseInt(req.user.uid, 10) !== 0 : false;
|
||||
options.loggedIn = !!req.uid;
|
||||
options.relative_path = nconf.get('relative_path');
|
||||
options.template = {name: template};
|
||||
options.template[template] = true;
|
||||
|
||||
Reference in New Issue
Block a user