fix(AB-testing): allow client access to _ABtests

This commit is contained in:
Sabe Jones
2016-12-21 21:53:36 +00:00
parent 92531e9360
commit 25832365ba
+1 -1
View File
@@ -10,7 +10,7 @@ import schema from './schema';
schema.plugin(baseModel, {
// noSet is not used as updating uses a whitelist and creating only accepts specific params (password, email, username, ...)
noSet: [],
private: ['auth.local.hashed_password', 'auth.local.salt', '_cronSignature', '_ABtest', '_ABtests'],
private: ['auth.local.hashed_password', 'auth.local.salt', '_cronSignature', '_ABtest'],
toJSONTransform: function userToJSON (plainObj, originalDoc) {
plainObj._tmp = originalDoc._tmp; // be sure to send down drop notifs
delete plainObj.filters;