diff --git a/src/middleware/header.js b/src/middleware/header.js index 17b9987752..9bd0acaed7 100644 --- a/src/middleware/header.js +++ b/src/middleware/header.js @@ -115,7 +115,7 @@ middleware.renderHeader = async function renderHeader(req, res, data) { templateValues.isAdmin = results.user.isAdmin; templateValues.isGlobalMod = results.user.isGlobalMod; templateValues.showModMenu = results.user.isAdmin || results.user.isGlobalMod || results.user.isMod; - templateValues.canChat = results.canChat && meta.config.disableChat !== 1; + templateValues.canChat = results.privileges.chat && meta.config.disableChat !== 1; templateValues.user = results.user; templateValues.userJSON = jsesc(JSON.stringify(results.user), { isScriptContext: true }); templateValues.useCustomCSS = meta.config.useCustomCSS && meta.config.customCSS;