fixed issue where non-admins would get maintenance mode header if maintenance mode was NOT enabled (logic errors, grrr..)

v1.18.x
Julian Lam 10 years ago
parent 5db24fbe68
commit 60c45d8b9b

@ -355,7 +355,7 @@ middleware.renderHeader = function(req, res, callback) {
templateValues.user = results.user; templateValues.user = results.user;
templateValues.customCSS = results.customCSS; templateValues.customCSS = results.customCSS;
templateValues.customJS = results.customJS; templateValues.customJS = results.customJS;
templateValues.maintenanceHeader = meta.config.maintenanceMode === '1' ^ !!results.isAdmin templateValues.maintenanceHeader = meta.config.maintenanceMode === '1' && !results.isAdmin
app.render('header', templateValues, callback); app.render('header', templateValues, callback);
}); });

Loading…
Cancel
Save