Skip to content

Commit

Permalink
fix: #9512, fix chat icon if no privileges
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Apr 27, 2021
1 parent 55e3f5c commit 6ed8890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6ed8890

Please sign in to comment.