make user listing return non-private fields
this was from a time when normal users could install apps
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user