mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
parseInt maintenance mode
This commit is contained in:
@@ -378,7 +378,7 @@ middleware.renderHeader = function(req, res, callback) {
|
||||
templateValues.user = results.user;
|
||||
templateValues.customCSS = results.customCSS;
|
||||
templateValues.customJS = results.customJS;
|
||||
templateValues.maintenanceHeader = meta.config.maintenanceMode === '1' && !results.isAdmin;
|
||||
templateValues.maintenanceHeader = parseInt(meta.config.maintenanceMode, 10) === 1 && !results.isAdmin;
|
||||
|
||||
app.render('header', templateValues, callback);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user