localhost default user = admin

This commit is contained in:
Mikhail Koltsov 2014-03-16 16:15:26 +04:00
parent 8276dbf2d1
commit 0474b2ceb5

View file

@ -23,6 +23,7 @@ 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 = ->