Skip to content

Commit

Permalink
Merge pull request TryGhost#1026 from jenius/master
Browse files Browse the repository at this point in the history
Remove unneeded info from /user api response
  • Loading branch information
ErisDS committed Oct 14, 2013
2 parents bb3b153 + 44973ba commit e05d5e5
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 e05d5e5

Please sign in to comment.