From fbf52407fd69eb8ef6ee70a2071ca36881ecd821 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 29 Jan 2018 15:32:53 -0500 Subject: [PATCH] Re: #6425 - Exposing IP addresses to moderators --- src/controllers/accounts/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/accounts/helpers.js b/src/controllers/accounts/helpers.js index 64170ce39d..ae73b817e8 100644 --- a/src/controllers/accounts/helpers.js +++ b/src/controllers/accounts/helpers.js @@ -98,7 +98,7 @@ helpers.getUserDataByUserSlug = function (userslug, callerUID, callback) { userData.fullname = ''; } - if (isAdmin || isSelf || (isGlobalModerator && !results.isTargetAdmin)) { + if (isAdmin || isSelf || ((isGlobalModerator || isModerator) && !results.isTargetAdmin)) { userData.ips = results.ips; }