mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-23 22:11:09 +03:00
Merge pull request #1026 from jenius/master
Remove unneeded info from /user api response
This commit is contained in:
parent
1bd8002858
commit
daa87e92c2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user