Skip to content

Commit

Permalink
remove unneeded info from user api response
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Escalante committed Oct 14, 2013
1 parent 1d16745 commit 44973ba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/server/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 44973ba

Please sign in to comment.