misc fixes, GET user (with tests), more comments for preenHistory

This commit is contained in:
Matteo Pagliazzi
2015-12-13 20:08:14 +01:00
parent e6d9c978f7
commit a34f41f0f7
5 changed files with 99 additions and 18 deletions
+1 -1
View File
@@ -469,7 +469,7 @@ export let schema = new Schema({
});
schema.plugin(baseModel, {
noSet: ['_id', 'apikey', 'auth.blocked', 'auth.timestamps', 'lastCron', 'auth.local.hashed_password', 'auth.local.salt', 'tasksOrder', 'tags'],
noSet: ['_id', 'apiToken', 'auth.blocked', 'auth.timestamps', 'lastCron', 'auth.local.hashed_password', 'auth.local.salt', 'tasksOrder', 'tags'],
private: ['auth.local.hashed_password', 'auth.local.salt'],
toJSONTransform: function toJSON (doc) {
// FIXME? Is this a reference to `doc.filters` or just disabled code? Remove?