make user listing return non-private fields

this was from a time when normal users could install apps
This commit is contained in:
Girish Ramakrishnan
2022-02-16 21:17:03 -08:00
parent 012a3e2984
commit 26a8738b21
3 changed files with 4 additions and 10 deletions

View File

@@ -2,7 +2,6 @@
exports = module.exports = {
removePrivateFields,
removeRestrictedFields,
add,
createOwner,
@@ -172,11 +171,6 @@ function removePrivateFields(user) {
return result;
}
// remove all fields that Non-privileged users must not see
function removeRestrictedFields(user) {
return _.pick(user, 'id', 'username', 'email', 'displayName', 'active');
}
async function add(email, data, auditSource) {
assert.strictEqual(typeof email, 'string');
assert(data && typeof data === 'object');