Skip to content

Node.js based forum software built for the modern web

Closes #6245

Julian Lam7581dd11746b
diff --git a/src/controllers/accounts/helpers.js b/src/controllers/accounts/helpers.js
index 64170ce39d..8951976a78 100644
--- a/src/controllers/accounts/helpers.js
+++ b/src/controllers/accounts/helpers.js
@@ -50,11 +50,26 @@ helpers.getUserDataByUserSlug = function (userslug, callerUID, callback) {
ips: function (next) {
user.getIPs(uid, 4, next);
},
- profile_links: function (next) {
+ profile_links: function (next) { // DEPRECATED, do not use
plugins.fireHook('filter:user.profileLinks', [], next);
},
profile_menu: function (next) {
- plugins.fireHook('filter:user.profileMenu', { uid: uid, callerUID: callerUID, links: [] }, next);
+ plugins.fireHook('filter:user.profileMenu', {
+ uid: uid,
+ callerUID: callerUID,
+ links: [{
+ id: 'info',
+ route: 'info',
+ name: '[[user:account_info]]',
+ visibility: {
+ self: false,
+ other: false,
+ moderator: true,
+ globalMod: true,
+ admin: true,
+ },
+ }],
+ }, next);
},
groups: function (next) {
groups.getUserGroups([uid], next);