0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

remove unneeded info from user api response

This commit is contained in:
Jeff Escalante 2013-10-14 11:34:50 -04:00
parent 1d1674547f
commit 44973ba255

View file

@ -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