This commit is contained in:
Mikhail Koltsov 2014-03-16 19:11:55 +04:00
parent 0474b2ceb5
commit 160c99b2b8
2 changed files with 1 additions and 2 deletions

View file

@ -23,7 +23,6 @@ UserSchema.pre('init', (next) ->
UserSchema.post('init', ->
@set('anonymous', false) if @get('email')
@currentSubscriptions = JSON.stringify(@get('emailSubscriptions'))
@set('permissions', ['admin']) unless isProduction
)
UserSchema.methods.isAdmin = ->

View file

@ -186,4 +186,4 @@ UserHandler = class UserHandler extends Handler
res.redirect(document?.get('photoURL') or '/images/generic-wizard-icon.png')
res.end()
module.exports = new UserHandler()
module.exports = new UserHandler()