Made some more User properties private.

This commit is contained in:
Nick Winter 2014-09-10 21:56:21 -07:00
parent f53f6bf0a3
commit 851ad43b45

View file

@ -124,7 +124,7 @@ UserSchema.statics.statsMapping =
'level.component': 'stats.levelComponentMiscPatches'
'level.system': 'stats.levelSystemMiscPatches'
'thang.type': 'stats.thangTypeMiscPatches'
UserSchema.statics.incrementStat = (id, statName, done, inc=1) ->
id = mongoose.Types.ObjectId id if _.isString id
@findById id, (err, user) ->
@ -184,8 +184,9 @@ UserSchema.statics.hashPassword = (password) ->
shasum.digest('hex')
UserSchema.statics.privateProperties = [
'permissions', 'email', 'firstName', 'lastName', 'gender', 'facebookID',
'gplusID', 'music', 'volume', 'aceConfig', 'employerAt', 'signedEmployerAgreement'
'permissions', 'email', 'mailChimp', 'firstName', 'lastName', 'gender', 'facebookID',
'gplusID', 'music', 'volume', 'aceConfig', 'employerAt', 'signedEmployerAgreement',
'emailSubscriptions', 'emails', 'activity'
]
UserSchema.statics.jsonSchema = jsonschema
UserSchema.statics.editableProperties = [