Node.js based forum software built for the modern web
fix: closes #14624, dont show ban/mute/flags to self
Barış Soner Uşaklı3db92c55c36f
diff --git a/install/package.json b/install/package.jsonindex 9ae506277f..4039e33c85 100644--- a/install/package.json+++ b/install/package.json@@ -113,10 +113,10 @@"nodebb-plugin-spam-be-gone": "2.3.5","nodebb-plugin-web-push": "0.9.3","nodebb-rewards-essentials": "1.0.3",- "nodebb-theme-harmony": "3.2.8",+ "nodebb-theme-harmony": "3.2.9","nodebb-theme-lavender": "8.1.0","nodebb-theme-peace": "3.1.3",- "nodebb-theme-persona": "15.2.4",+ "nodebb-theme-persona": "15.2.5","nodebb-widget-essentials": "8.0.9","nodemailer": "9.0.5","nprogress": "0.2.0",diff --git a/src/controllers/accounts/info.js b/src/controllers/accounts/info.jsindex 002010bfd1..65a42f66b2 100644--- a/src/controllers/accounts/info.js+++ b/src/controllers/accounts/info.js@@ -26,13 +26,13 @@ infoController.get = async function (req, res) {const notes = await getNotes({ uid: res.locals.uid, isPrivileged }, start, stop);- payload.history = history;payload.sessions = sessions;payload.usernames = usernames;payload.emails = emails;payload.invitedBy = invitedBy;if (isPrivileged) {+ payload.history = history;payload.moderationNotes = notes.notes;const pageCount = Math.ceil(notes.count / itemsPerPage);payload.pagination = pagination.create(page, pageCount, req.query);