From 44973ba2550c8aaaf5a576050af04d86beaf9b6f Mon Sep 17 00:00:00 2001 From: Jeff Escalante Date: Mon, 14 Oct 2013 11:34:50 -0400 Subject: [PATCH] remove unneeded info from user api response --- core/server/api.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/server/api.js b/core/server/api.js index 7e4a391806e0..55de358d33f0 100644 --- a/core/server/api.js +++ b/core/server/api.js @@ -114,7 +114,11 @@ users = { args = {id: this.user}; } - return dataProvider.User.read(args); + var filteredAttributes = ['password', 'created_by', 'updated_by']; + + return dataProvider.User.read(args).then(function omitAttrs(result) { + return _.omit(result, filteredAttributes); + }); }, // #### Edit