fix: #9512, fix chat icon if no privileges

v1.18.x
Barış Soner Uşaklı 4 years ago
parent 55e3f5c1db
commit 6ed8890c2e

@ -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;

Loading…
Cancel
Save