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